Thanks for the info.

"membership_address.do" is the Action from the JSP page when I do my submit. If I call the this Action with validate=true, then it's going to call the FormBean Validate method first, and if anything is required, then it would get errors and return to the calling page with a bunch of error codes even though the user wasn't there the first time. I've seen other people ask that question before.

The Action you suggest I call, is this a new Action altogether with no validation? This action could either get data from the database, or if that is already done, then I could just take the data from the MemberDTO and put that into the formbean as you suggest, then I would automatically forward to the Membership_Address.jsp page. Is that correct, or do you mean go to the same Action as when I do a submit.

So, I won't be a bother to the list, can you re-direct me to the struts-example web-app? Can I download that app from the Struts web-site directly?

Thanks again for the help.

                                Tom


Wendy Smoak wrote:

From: "Tom Holmes Jr." <[EMAIL PROTECTED]>

So, the way I started to handle this is call the JSP page directly with
the form.  I got the 'member' object from session and I populated the
value field as follows:
<html:text property="address1" value="${member.address1}"/>
Would this be appropriate?  It works except for my checkboxes.


No.  Set those values in the Action code, before forwarding to the JSP.

The struts-example webapp shows how to do this-- look for the calls to
BeanUtils.copyProperties(...) that copy the values back and forth from the
DTO to the form bean.

Don't forget to write a reset method to handle those checkboxes.



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



Reply via email to