Struts JSP Web App and Google rankings

since converting a website from php to a jakarta struts web app the sites google ranking has dramatically droped (almost disapeered).

We've resubmitted the site for the google bot to search, with each of the .do addresses.

However the only page that appears to be available on google is the site home page, rather than each of the pages available at the .do urls that are automatically generated (product pages)

Has anyone else had this problem with getting pages (.do) listed in the google listings?

[526 byte] By [StrutFoola] at [2007-11-27 9:17:23]
# 1

> Has anyone else had this problem with getting pages

> (.do) listed in the google listings?

There are no .do pages.

The ".do" file extension is used for a URL which is mapped to a Struts Action declared in the configuration file.

The URL is for Controller mapping only, and does not point to a physical file on the web server machine.

Try getting the JSP or HTML files of relevance listed.

GhostRadioTwoa at 2007-7-12 22:07:49 > top of Java-index,Java Essentials,New To Java...
# 2

> > Has anyone else had this problem with getting

> pages

> > (.do) listed in the google listings?

>

> There are no .do pages.

>

> The ".do" file extension is used for a URL which is

> mapped to a Struts Action declared in the

> configuration file.

>

> The URL is for Controller mapping only, and does not

> point to a physical file on the web server machine.

>

> Try getting the JSP or HTML files of relevance listed.

that doesnt make sense because the jsps themselves do not have an Action attached to them, and will probably not work.

my advice is to get your site Search engine optimized, meaning, you should rewrite the url to remove the ? and the & and make them into something else.. my company uses /,,/ for ? and / for &. you can do this easily using a servlet.

mkoryaka at 2007-7-12 22:07:49 > top of Java-index,Java Essentials,New To Java...
# 3

You can't map direct to a jsp in a struts app, the jsps are within the web-inf container which prevents calling the jsps direct. The jsps are page fragments and are built into a suitanle html response via struts tiles.

The only way to access the jsp pages is to call the .do mapping where by a servlet is invoked to perform the business logic and the html response generated.

Is the fact that the urls contain ? and & signs causing this problem?

StrutFoola at 2007-7-12 22:07:49 > top of Java-index,Java Essentials,New To Java...
# 4

RE: search engine optimisation, we have meta tags, keywords etc. and despite regular resubmissions to the google bot and a robots.txt/sitemap.xml in the root directory containing each of the .do mappings the urls just aren't getting listed.

an example of one of the urls is as follows:

http://www.troutlure.net/displayGoods.do?category_id=1&subcategory_id=12

StrutFoola at 2007-7-12 22:07:49 > top of Java-index,Java Essentials,New To Java...
# 5
Not all Struts applications are built with JSP pages in the WEB-INF directory. This is a design option. They can exist outside of WEB-INF also.Try getting rid of the .do extension. Change the mapping configuration from .do to .htm.
GhostRadioTwoa at 2007-7-12 22:07:49 > top of Java-index,Java Essentials,New To Java...