Thursday, April 4, 2002 08:49 AM
looks like that you have your userAddAction class forward to userAdd.jsp, and userAdd.jsp submit to the same userAddAction class. If it is true, I believe you have validate=true set up in action mapping because you need to validate data when form submitted. Therefore, you may try to skip validate method in formbean class by checking if "submit" parameter exist or equal null.
Or, you may choose "Struts" way to have two action class with one form. you may have "editUserAddAction" forward to "userAdd.jsp" and then submit to "saveUserAddAction", then you specify validate=false for "editUserAddAction" and validate=true for "saveUserAddAction" in action mapping. Then your link can be just
hope this helps