This is where I must be doing something wrong, my UserUpdateAction isn't finding the pre-populated form. Here is my code for both:

Hm. is UserUpdateAction expecting certain properties to survive between the requests which are not in the request parameters? By default, form beans have request scope, so a new instance of UserBean is created upon submission to /userUpdate.do and populated with request parameter values. If you want values to be in the UserBean on both requests, you need to include them in the form on UserEdit.jsp, if only as hidden fields.



You can add the "scope='session'" attribute to both mappings and then Struts will store the form in the user's session, which would deal with that problem; this method is often used in a "wizard" process where several screens are used to sequentially populate a form without needing to use hidden fields to repeatedly resubmit values.


Any chance its something like this?

Joe

--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex


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



Reply via email to