A better long-term solution might be to create a standard JSP 2.0 taglib for Struts 2 that follows the same external API as the Struts 1 EL tags, and didn't use OGNL at all.
* http://struts.apache.org/1.3.8/struts-el/index.html This would mean doing without templates, but I think many people are reverting to the simple theme anyway. I'd really love to do this myself, but I don't know how to fit it in with everything else. -Ted. On Oct 30, 2007 7:25 AM, 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. > > -----Original Message----- > From: Desbois Arnaud [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 30, 2007 3:55 AM > To: Struts Users Mailing List > > Subject: RE: S2: EL in tags 2.0.11 > > Try this: %{#request['javax.servlet.forward.context_path'] > > Arnaud > > -----Message d'origine----- > De: cilquirm [mailto:[EMAIL PROTECTED] > Envoyé: lundi 29 octobre 2007 17:51 > À: user@struts.apache.org > Objet: Re: S2: EL in tags 2.0.11 > > > > I believe this was a security fix, as there was an issue where ognl > expressions could be used to do something drastic to the application server > ( like System.exit ). > > I believe the expectation is that you can get around it by creating your own > customized tld or something like : > > <c:set var="contextRoot" value="${pageContext.request.contextPath}" > scope="request"/> > <s:property value="\%{ #request.contextRoot }"/> > > hth, > -a > > > > Manuel Correa wrote: > > > > In S2.09 is possible to use EL in the properties tags. For example: > > > > > > > > <s:property value="${pageContext.request.contextPath}" /> > > > > > > > > That because the parameter in tld is rtexprvalue="true" > > > > > > > > In S2.0.11 this is not possible (rtexprvalue="false"). I want to know > > is some property that active and un-active this parameter in the TLD. Or > > what is the best way to use EL in tags. > > > > > > > > Thanks, > > > > > > > > Manuel > > > > > > > > -- > View this message in context: > http://www.nabble.com/S2%3A-EL-in-tags-2.0.11-tf4712519.html#a13471024 > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > 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] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- HTH, Ted <http://www.husted.com/ted/blog/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]