Re: Access namespace-name or/and action name from jsp in Struts2

2011-10-11 Thread DOMERGUE Sebastien
Hi, first of all, you won't be able to access these directly within the jsp. In your action (or in a interceptor), you have to access the request (you can use ServletActionContext for instance). Then, with this object you can obtain the url, the server name, the uri... A few substrings la

Access namespace-name or/and action name from jsp in Struts2

2011-10-11 Thread Markus Demetz
Hi, I would like to retrieve the name of the current namespace and possibly the action from the jsp page using Struts2. My intention is to assign a css class to a container to have a better control of the layout. e.g. ... Any hints? Thank you, Markus ---