I have i problem figuring out how to use nested properties in my struts forms.

The flow of this part of my application is as follows:

- The first time the action is called (html:submit property "action" == null) the form 
is populated with data from an EJB, and the request is forwarded to a page called 
customerform.jsp
- When the user pushes the submit button (html:submit property == "confirm") the 
formdata are copied into a bean named customer and the Action forwards to a page that 
shows the changed data (an ordinary non-form page named customerdata.jsp, presenting 
the data using <bean:write>)

The problem is that my simple properties are forwarded and presented in 
customerdata.jsp, but my nested properties are gone. The nested properties are visible 
in customerform.jsp, but when i try to print them to my console from the Action 
(before forwarding to customerpage.jsp) I only get null values, and an 
NullPointerException.

I've tried setting the scope of my form to "session" as suggested in several postings 
on this list, but i only end up with another exception: 
java.lang.IllegalArgumentException: argument type mismatch, before the Action class is 
even started.

Does anybody have any advice?

Thanks

- ida


.......mogul technology as...................................................
mogul technology > ida dørum - software engineer
mailto:[EMAIL PROTECTED]
www.mogul.no
.......................................................................



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to