This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes set Action as welcome-file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "set Action as welcome-file" Watch "set Action as welcome-file" New topic
Author

set Action as welcome-file

Mathias Nilsson
Ranch Hand

Joined: Aug 21, 2004
Posts: 367
Is it possible to set an struts 2 Action as welcome-file?


SCJP1.4
Mathias Nilsson
Ranch Hand

Joined: Aug 21, 2004
Posts: 367
Ok! It seems that it isn't A redirect from a jsp. Isn't there a better way. Isn't this a little ugly?
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
It does seem like there should be a better way, but this is how I have always done it.

- Brent
Abhilash George
Greenhorn

Joined: Apr 28, 2006
Posts: 13
I believe that in any web application there always has to be first page which has to be a physical page . ie a jsp or html and it cannot be an action.


george
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

Hi
Adding to what Abhilash Geroge Said,

From Servlet V2.4, they added a "servlet" to be configured as a welcome file. I believe the same way it could also be possible. But not sure!!


Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: set Action as welcome-file
 
Similar Threads
welcome-file element to use a Struts action
How to set Servlet as welcome-file...or to load instead of index.jsp
welcome file list in web.xml
Stripes MissingResourceException
Javascript redirect