That is not possible, because in Struts 2.0.11 you can't use EL in any Struts tag, including <s:set ...
Manuel Correa. -----Original Message----- From: Chris Pratt [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 30, 2007 12:11 PM To: Struts Users Mailing List Subject: Re: S2: EL in tags 2.0.11 On 10/30/07, Manuel Correa <[EMAIL PROTECTED]> wrote: > Didn't work: <s:property value="%{#request['javax.servlet.forward.context_path']"/> > > I think that the best solution is rewrite the tld. Is painful. > > Manuel Correa. > If you're looking for the simplest solution, you should be able to define a request scoped variable at the top of the page using JSTL: <c:set var="contextPath" value="${pageContext.request.contextPath"}" scope="request"/> And then whenever you need the value using OGNL, you can use: %{#request['contextPath']} (possibly surrounding it with <s:property> if necessary) I agree, it's definitely much harder to understand at a glance, but until the tag library is truly fixed, this is probably the "easiest" solution. (*Chris*) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

