Thanks again for the reply, it didn't work for me but I managed to get it thanks to the documentation you pointed me towards. I got it through:
${action.servletResponseFromActionContext.contextPath} where 'servletResponseFromActionContext' is a method 'getServletResponseFromActionContext' of my action that returns the real HttpServletRequest object. My method is: public HttpServletResponse getServletResponseFromActionContext(){ ActionContext actionContext = ActionContext.getContext(); final HttpServletResponse response = (HttpServletResponse) actionContext.get(StrutsStatics.HTTP_RESPONSE); return response; } and your action must implement 'ServletResponseAware'. I have no idea why the mehtod you gave doesn't work for me but I always got the string printed out as plain text - odd as obviously I can use the 'action' parameter OK (I can also use the 'struts' parameter). -- View this message in context: http://www.nabble.com/Re%3A-Strus2%2C-Freemarker-and-getting-request.getContextPath%28%29-tp20032257p20037248.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]