David, I like your solution. Thanks for figuring it out. I have a few questions:
1. You listed "/OrderSubmit.do" as your "/terms" action parameter but didn't show how you define it. What Action class do you derive it from? How do you return true or false from it to the forward action? I've only used forward actions to jump to tiles templates. Does OrderSubmit.do simply return true or false? How does it do validation? I don't quite see the connection on that end, unless (maybe) you meant parameter="/order.do" ? Once you explain that, this might work for my configuration pages, now that I've learned how to handle and hold uploaded files in a Form bean. 2. Do you embed your previous page variables as hidden variables in the page? I ask because I didn't see a name="SomeActionForm" and a scope="session" in your action declarations. I would need that for my current project so I could do file uploads, hold them in the bean until the last action, which would swap the images and update the database (in my case anyway). David [how many David's are on this list?] :) -----Original Message----- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2003 10:44 AM To: Struts-Users Subject: A new way to handle multi-page entry Hi; I have an order system where the user has to enter data on 4 pages, one after the other. I don't want them able to bookmark the 4th page and go back to it later and try to place an order from there - with the previous three pages left empty. So here is what I did. To get each page, I have: <action path="/order" type="org.apache.struts.actions.ForwardAction" parameter="/order.jsp" /> <action path="/terms" type="org.apache.struts.actions.ForwardAction" parameter="/OrderSubmit.do" /> The first page is order.jsp and it forwards to it. However, the second page is terms.jsp and instead it forward to the action class for order.jsp. If order.jsp is complete and valid, it maps to terms.jsp. But if it isn't, then it goes to order.jsp forcing them back. The beauty of this is: 1) It is all handled in the struts-config.xml file 2) It uses the validator for each page to see if the page is valid. Did I miss anything here? thanks - dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]