Rick... remember, in 2.0 "/" is now "." -- Ognl is trying to divide, and
to do so it is trying to convert Order -> String.

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Rick Salsa
> Sent: Thursday, February 19, 2004 9:39 AM
> To: [EMAIL PROTECTED]
> Subject: [OS-webwork] WebWork2 Problems.
> 
> I seem to be having a really wierd problem that I can't seem to figure
> out.
> 
> I've got an Action class which is making calls on an domain object.
The
> snippet in the action class:
> 
> public Order getOrder() {
>     return order;
> }
> 
> and the input field in the form:
> 
>     <input type="text" name="order/lastName" />
> 
> The field is being set properly, but I'm having weird OGNL problems
when
> I try to retrieve the value in the resulting view. I've tried the
> following with no success:
> 
> <ww:push value="order">
>     Last Name: <ww:property value="lastName"/>
> </ww:push>
> 
> Nothing shows up after "Last Name: ".
> 
> When I try this:
> 
> Last Name: <ww:property value="order/lastName"/>
> 
> I get a NumberFormatException:
> 
> java.lang.NumberFormatException: For input string:
> "[EMAIL PROTECTED]"
>       at
>
java.lang.NumberFormatException.forInputString(NumberFormatException.jav
a:
> 48)
>       at java.lang.Long.parseLong(Long.java:394)
>       at java.lang.Long.parseLong(Long.java:452)
>       at ognl.OgnlOps.longValue(OgnlOps.java:85)
>       at ognl.OgnlOps.divide(OgnlOps.java:497)
>       at ognl.ASTDivide.getValueBody(ASTDivide.java:51)
>       at ognl.SimpleNode.getValue(SimpleNode.java:167)
>       at ognl.Ognl.getValue(Ognl.java:335)
>       at
>
com.opensymphony.xwork.util.OgnlValueStack.findValue(OgnlValueStack.java
:1
> 14)
>       at
>
com.opensymphony.webwork.views.jsp.WebWorkTagSupport.findValue(WebWorkTa
gS
> upport.java:51)
>       at
>
com.opensymphony.webwork.views.jsp.PropertyTag.doStartTag(PropertyTag.ja
va
> :58)
>       at
>
org.apache.jsp.admin_review_jsp._jspx_meth_ww_property_0(admin_review_js
p.
> java:113)
>       at
> org.apache.jsp.admin_review_jsp._jspService(admin_review_jsp.java:73)
> 
> Has anyone else seen this before? I'm using Webwork 2 stable.
> 
> Thanks,
> /rick
> 
> 
> 
> 
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to