Ah shit! My bad. Everything works fine now. Its been awhile ;) Thanks guys!

/rick

Jason Carreira wrote:
The others answered your _expression_ language issue... Can you check if
the order object is not null? Also check if the lastName property is not
empy... 

  
-----Original Message-----
From: Rick Salsa [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 19, 2004 12:39 PM
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(NumberFormatExc
eption.java: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(OgnlValue
Stack.java:114)
	at 
com.opensymphony.webwork.views.jsp.WebWorkTagSupport.findValue
(WebWorkTagSupport.java:51)
	at 
com.opensymphony.webwork.views.jsp.PropertyTag.doStartTag(Prop
ertyTag.java:58)
	at 
org.apache.jsp.admin_review_jsp._jspx_meth_ww_property_0(admin
    
_review_jsp.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_id56&alloc_id438&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

  

Reply via email to