It depends upon the architecture you want to follow. There are multiple ways this can be done
1. Create the 2 jsp as independent jsp. Thus the list jsp jsp always fetches from DB when we bring control to that. Clicking add on the list jsp leads to the adddetails jsp which submit data to DB. This is the most commonly used and I have seen this being used successfully in multiple applications 2. Create the 2 jsp as a wizard using struts session scope strategy. This strategy has certain complications and is generally disadvantageous. Thanks, Satish Kataria -----Original Message----- From: lixin chu [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 4:59 AM To: [EMAIL PROTECTED] Subject: best practice: how to handle two related jsp pages, with one having an ArrayList, the other input details Hi, How should I handle this: I have 2 jsp, in a.JSP, I need to display an ArrayList. When users click 'Add', B.JSP is displayed which allows users to fill in the details of a new object. When users click 'Done', I need to return back to A.JSP, display the newly added object, and ArrayList should be updated as well. What do I need to do to support this ? thank you very much li xin __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]