Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Default "do" for a servlet

 
Tony Smith
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the MyAppLong directory put a file called index.jsp and put the following contents in the file:

 
Tony Smith
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That worked well, thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic