Pierre Thibaudeau wrote:
(Struts 2.1.2)
In the JSP, is it possible through some OGNL expression to get hold of the
URL of the current request? I looked through the XML output obtained
through debugging, but could not find anything.
(I know I can get hold of the action and parameters; so there might a
complicated way out...)
The HttpServletRequest includes the getRequestURI() method. You can
access that easily using EL but OGNL is a little obscure.
The request object is available in the context map in a property called
"com.opensymphony.xwork2.dispatcher.HttpServletRequest".
<s:property
value="%{#context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'].requestURI}"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]