Okay Strutters, I'm trying to solve the problem of losing my form data if the validate() function finds an error. I have seen in this list that people have suggested having:
A) 2 actions each with it's own action mapping, one called before the form is rendered on the JSP (instantiating the corresponding form bean) and action for after the form is submitted. B) 1 action with 2 action mappings (???) - How does the app know which action mapping to use? Am I passing a parameter? So I have tried the first solution, but I'm getting an error on the JSP which says that my form bean is not in scope. My action mappings are as follows: <action path="/PreAdd" type="com.infomediary.admin.actions.PreAdd" name="AddBean" scope="session" validate="false"> <forward name="preprocess" path="/jsp/Add.jsp"/> </action> <action path="/Add" type="com.infomediary.admin.actions.Add" name="AddBean" scope="session" input="/jsp/Add.jsp" validate="true"> <forward name="success" path="/jsp/Next.jsp"/> <forward name="cancel" path="/jsp/Back.jsp"/> <forward name="failure" path="/jsp/Add.jsp"/> </action> Is it something obvious? How would I implement option 2? Thanks in advance ------------------------------------------------------------------------- Two ActionMappings, one with validate=false and the other with validate=true. One Action class should be sufficient, though. -- Ted Husted, Husted dot Com, Fairport NY US -- Developing Java Web Applications with Struts -- Tel: +1 585 737-3463 -- Web: http://husted.com/about/services __________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>