I expect this is probably very easy but I have not seen and description
anywhere of how to do it. I currently have this in a Struts2 enabled jsp
page:
<%request.getContextPath()%>
and need to convert it to freemarker. I have tried the obvious:
${request.contextPath}
${request.getContextPath}
and also adding a servlet filter (and when that failed an interceptor) that
sets:
request.setAttribute("requestObject" , request);
but the best error I can get is:
freemarker.beans - Key 'requestObject' was not found on instance of
org.apache.struts2.dispatcher.StrutsRequestWrapper
How can I get access to the Request object inside of my Freemarker template
when I am using Struts 2?
--
View this message in context:
http://www.nabble.com/Strus2%2C-Freemarker-and-getting-request.getContextPath%28%29-tp20032062p20032062.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]