| Author |
Getting name of module from request object
|
Marc Peabody
pie sneak
Sheriff
Joined: Feb 05, 2003
Posts: 4725
|
|
|
Assuming the best object I have to work with is request, can anyone think of a way to retrieve the name of the Struts module associated with the request?
|
A good workman is known by his tools.
|
 |
Marc Peabody
pie sneak
Sheriff
Joined: Feb 05, 2003
Posts: 4725
|
|
Figured it out: ActionMapping mapping = (ActionMapping)request.getAttribute("org.apache.struts.action.mapping.instance"); String module = mapping.getModuleConfig().getPrefix();
|
 |
 |
|
|
subject: Getting name of module from request object
|
|
|