wood burning stoves 2.0*
The moose likes Struts and the fly likes struts2: Mapping generic paths? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts2: Mapping generic paths?" Watch "struts2: Mapping generic paths?" New topic
Author

struts2: Mapping generic paths?

André-John Mas
Ranch Hand

Joined: Oct 18, 2008
Posts: 37
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/
 
 
subject: struts2: Mapping generic paths?
 
Similar Threads
WLST Managed Server State
Stripes - ActionResolver.Packages
Redirect and RedirectAction result types
how to encode the url in strut2
html:form pointing to some outside url ?