aspose file tools
The moose likes Struts and the fly likes struts2: Mapping generic paths? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply 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/
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: struts2: Mapping generic paths?
 
Similar Threads
html:form pointing to some outside url ?
WLST Managed Server State
how to encode the url in strut2
Stripes - ActionResolver.Packages
Redirect and RedirectAction result types