Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • 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/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic