You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Oleg Mikheev <mi...@bigfoot.com> on 2008/05/19 20:19:03 UTC

Expressions and migration from 2.0.9

I was trying to upgrade from 2.0.9 to the latest Struts 2 and 
encountered this issue:
http://issues.apache.org/struts/browse/WW-2107

If I have a lot of code like this:

<s:checkbox id="${transactionType}form_qoInceptionPPDO_${forStatus.index}"
 
name="qoInceptionPPDO_${forStatus.index}" theme="simple"
 
fieldValue="${requestScope[tmpVar]}" value="${not empty renewaledId ? 
false : requestScope[tmpVar]}"
                                                    onclick="${not empty 
renewaledId ? 'return false' : ''}"
 
onchange="document.getElementById('${transactionType}form_qoInceptionPPDO_${forStatus.index}').value=document.getElementById('${transactionType}form_qoInceptionPPDO_${forStatus.index}').checked"/>

is there any 'easy' way of making it work with the latest Struts2?
If there is no easy way I will continue using Struts 2.0.9 since trying 
to port that stuff will become a nightmare.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Expressions and migration from 2.0.9

Posted by Musachy Barroso <mu...@gmail.com>.
You can define a taglib-location in web.xml, but I am not sure if that
overwrites the one from the jar file.

musachy

On Mon, May 19, 2008 at 3:14 PM, Oleg Mikheev <mi...@bigfoot.com> wrote:
> Dave Newton wrote:
>>
>> Change the TLD?
>>
>> The combination of the two levels of EL is a security risk in some
>> applications. If you're not worried about it or not affected by it then
>> it's an easy, if annoying, workaround.
>
> Thanks
> Is repackaging struts jar the only way of doing that?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Expressions and migration from 2.0.9

Posted by Oleg Mikheev <mi...@bigfoot.com>.
Dave Newton wrote:
> Change the TLD?
> 
> The combination of the two levels of EL is a security risk in some
> applications. If you're not worried about it or not affected by it then
> it's an easy, if annoying, workaround.

Thanks
Is repackaging struts jar the only way of doing that?


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Expressions and migration from 2.0.9

Posted by Dave Newton <ne...@yahoo.com>.
Change the TLD?

The combination of the two levels of EL is a security risk in some
applications. If you're not worried about it or not affected by it then
it's an easy, if annoying, workaround.

Dave

--- Oleg Mikheev <mi...@bigfoot.com> wrote:

> I was trying to upgrade from 2.0.9 to the latest Struts 2 and 
> encountered this issue:
> http://issues.apache.org/struts/browse/WW-2107
> 
> If I have a lot of code like this:
> 
> <s:checkbox
> id="${transactionType}form_qoInceptionPPDO_${forStatus.index}"
>  
> name="qoInceptionPPDO_${forStatus.index}" theme="simple"
>  
> fieldValue="${requestScope[tmpVar]}" value="${not empty renewaledId ?
> 
> false : requestScope[tmpVar]}"
>                                                     onclick="${not
> empty 
> renewaledId ? 'return false' : ''}"
>  
>
onchange="document.getElementById('${transactionType}form_qoInceptionPPDO_${forStatus.index}').value=document.getElementById('${transactionType}form_qoInceptionPPDO_${forStatus.index}').checked"/>
> 
> is there any 'easy' way of making it work with the latest Struts2?
> If there is no easy way I will continue using Struts 2.0.9 since
> trying 
> to port that stuff will become a nightmare.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org