• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to call struts action as Website default home page

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends
I have registered www.xyz.com and i want to call the www.xyz.com/xyz/prepareIt.do lin when the user types www.xyz.com, Any body knows how can i implement this without a index.jsp redirection?


Thanks in advance
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The best solution to this would be to place "prepareit.do" in the web.xml welcome file list.

Unfortunately, I can't do this, because I use WebSphere as my Application Server, and WebSphere only supports URIs in the welcome file list that are backed by physical files such as index.html, or index.jsp. It does not support virtual URIs such as "prepareit.do" that are only resolved at run-time.

I've been told that WebLogic does support virtual URIs in the welcome file list, but I haven't verified that first-hand.

All I can tell you is that if you use an Application Server other than WebSphere, try putting "prepareit.do" in the welcome file list. If it doesn't work I'm afraid you're stuck with redirecting from an index.jsp page.
 
najmi thayyil
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using Resin and Tomcat and both doesn't support it in the welcome-list. Now from index.jsp i am redirecting the request to xyz/prepareIt.do. Expecting other suggestions.

And also Do you guys have any idea how the redirection affects the google ranking?
[ February 13, 2007: Message edited by: najmit ]
 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The HTTP 302 Temporary Redirect has negative impacts on the site ranking. However that should not happen if it is a HTTP 301 Permanent Redirect.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"najmit",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
reply
    Bookmark Topic Watch Topic
  • New Topic