Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Typed variables with bean:define

Ney André de Mello Zunino

2007-01-04


Hello.

When I try to define the following typed variable on a page, I get a
ClassCastException:

<bean:define id="totAquisicao" type="java.lang.Double" value="0.0"/>

Looking at the generated servlet code, the error occurs at this line:

totAquisicao = (java.lang.Double)
_jspx_page_context.findAttribute("totAquisicao");

What am I doing wrong or missing?

Thank you,

--
Ney Andr? de Mello Zunino


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.