This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Struts and the fly likes Default Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Default "do" for a servlet" Watch "Default "do" for a servlet" New topic
Author

Default "do" for a servlet

Tony Smith
Ranch Hand

Joined: Mar 15, 2005
Posts: 77
Currently to get to our app we have a relatively unfriendly URL and an even more unfriendly network support staff.

Here's a similar overly-long URL:

https://thisIsLong.thatIsTooLong.com/MyAppLong/Welcome.do

I'd be much obliged if anyone could direct me to the right struts config to allow

https://thisIsLong.thatIsTooLong.com/MyAppLong/ or
https://thisIsLong.thatIsTooLong.com/MyAppLong

to be 'forwarded', or otherwise treated exactly like the first URL with the 'Welcome.do' at the end of it.

The URLs are identical. I just want to default the action if it isn't supplied.

Thanks
Dom Lassy
Ranch Hand

Joined: May 05, 2006
Posts: 181
In the MyAppLong directory put a file called index.jsp and put the following contents in the file:

Tony Smith
Ranch Hand

Joined: Mar 15, 2005
Posts: 77
That worked well, thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Default "do" for a servlet
 
Similar Threads
struts url-pattern problem..
Default "do" for a servlet
SJSAS on Eclipse 3.3
Total confusion on so many IDs
Weblogic and Eclipse