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]