Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Alternative URL Pattern for Struts  RSS feed

 
Jayavardhan geepi
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have been asked a question recently. i.e While using struts(1.x) we will be having url pattern like www.localhost:8080/myApp/abc.do?someparam=somevalue.
So in web.xml we catch it with *.do and map to struts Action.

The question was, how can we use url like(modifying above), www.localhost:8080/myApp/abc/somevalue and get the same Action handle the request along with request parameter value.

Please explain...

Thanks and Regards,
Jay
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!