On Fri, Jan 30, 2009 at 10:10 AM, mleneveut <mlenev...@abusinessware.com> wrote:
>
> I put some @Conversion(), @Element(value = java.lang.Long.class) and
> @TypeConversion(rule = ConversionRule.COLLECTION, converter =
> "java.lang.Long") in my Action and it's not working better.
>
> So I set the convertion in a properties file with :
> Element_idsCommerciaux=java.lang.Long
>
> and it is working, thanks Ralf.
>
> I tried to put v2.1.6 but I had a lot of trouble with EL expression (s:if
> test="${}", s:if test="#session...") which seemed to have changed, but I see
> nothing in the docs, release ntoes or migration guide,

EL expressions attributes of struts tags which are evaluated on the
ValueStack are a security risk. See [1].

Outside from struts tags you can still access objects on the
valuestack, as struts intercepts the lookup to the page context. For
the other way around you have to fully markup when you want to access
the page context and such. ( foo="#attr.bar" ).

> so I gave up (600 JSP
> to change and no time to do it)

Take peace and comfort in the fact that you're not the only one who
has/had to do this :-)

Cheers,
-Ralf

[1] https://issues.apache.org/struts/browse/WW-2107

>
> Thanks for your help.
> --
> View this message in context: 
> http://www.nabble.com/Random-ClassCastException-%3A-I%27m-expecting-Long%2C-Struts-gives-me-String-on-some-servers...-tp21722894p21743689.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

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

Reply via email to