Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 37862 invoked from network); 27 Dec 2002 11:01:49 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 27 Dec 2002 11:01:49 -0000 Received: (qmail 14526 invoked by uid 97); 27 Dec 2002 11:02:58 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@jakarta.apache.org Received: (qmail 14488 invoked by uid 97); 27 Dec 2002 11:02:57 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 14473 invoked by uid 98); 27 Dec 2002 11:02:56 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <012001c2ad97$7ec23940$a60aa8c0@server1.etilize.com> From: "Affan Qureshi" To: "struts-user" Subject: Simultaneous editing of a session-scoped ActionForm bean Date: Fri, 27 Dec 2002 16:02:48 +0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I have a session scoped ActionForm bean "productBean" which has a nested hierarchy of objects. If the user opens two windows for the same page for different products the bean in the session gets overwritten and may cause corruption of data. One way is to error out if the user has a different product on the screen than the bean in the session (by comparing the productIds). But I wanted to maybe define multiple beans with different bean-names by appending the productId with the bean name. In that case the form should lookup the bean identified by a dynamic label rather than the one defined in struts-confg.xml. Is this possible? Can I instantiate multiple instances of a form bean even if declared only once in struts-config.xml? Or do I have to bypass the struts-config declaration altogether somhow? Has anyone done this in a better way? Any best practices in this case? Thanks a lot. Affan -- To unsubscribe, e-mail: For additional commands, e-mail: