• Post Reply Bookmark Topic Watch Topic
  • New Topic

struts2: Mapping generic paths?

 
André-John Mas
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am wanting to be able to match a wild case path to an action. For example

/foobar/entitya/show.action
/foobar/entityb/show.action
/foobar/entityc/show.action
/foobar/entityd/show.action

The show.jsp would all be the same action, though the 'entity' section could be any random string. How would I do that in struts?

Additionally how would I map a folder to an action. For example:

/foobar/
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!