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]

Reply via email to