开发者

What is the best tool or utility to create sitemap of a dynamic web based java application? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Closed 9 years ago.

  • Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
  • Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
开发者_运维技巧 Improve this question

We have a web based java/JSF/Spring application for which we want to create sitempas.xml and submit to search engines. We want the process to be automated so that whenever new content is added , the sitempas are generated. Is this the best options we have ? http://code.google.com/p/sitemapgen4j/


Site's on which I've worked have had a limited set of defined section homepages, add those manually to the sitemap (unless your CMS has a list of those top-level pages):

/home
/section1
/section2
...
/sectionN

They also had content types: videos, articles, games, etc. You want to get a list of every single item -- from your CMS or, in my case, Solr indexes generated from CMS. This is a huge list of:

/article1
/article2
...
/articleN
/video1
/video2
...
/videoN
...etc!

The markup for sitemaps and sitemap indexes is pretty simple XML.


We have finally gone as per google's suggestion and used the api's called redfin.sitemapgenerator


If your content can be retrieved from a datasource, generating the sitemap through batchjobs (Spring Batch + sitemapgen4j) might work for you.

More information on this blog post: http://www.jramoyo.com/2013/02/generating-sitemaps-using-spring-batch.html


This website http://create-site-map.com/ uses sitemapgen4j. You can easily write a script that uses it to generate and download the sitemap automatically periodically.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜