Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 11291 invoked from network); 18 Dec 2002 02:46:25 -0000 Received: from exchange.sun.com (HELO nagoya.betaversion.org) (192.18.33.10) by daedalus.apache.org with SMTP; 18 Dec 2002 02:46:25 -0000 Received: (qmail 23298 invoked by uid 97); 18 Dec 2002 02:47:27 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@jakarta.apache.org Received: (qmail 23282 invoked by uid 97); 18 Dec 2002 02:47:27 -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 23270 invoked by uid 98); 18 Dec 2002 02:47:26 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Reply-To: From: "Andrew Hill" To: "Struts Users Mailing List" Subject: Multiple forms in session [WAS: RE: how to send actionForm from one action to another action] Date: Wed, 18 Dec 2002 10:49:18 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal In-Reply-To: <3DFFECA8.5000707@swbell.net> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N One thing Ive never understood about forms in session scope, is how does struts deal with the situation where there are two concurrent requests in the same session both of which are for the same action (and form type)? As far as I can make out however, the key for a form is fixed without a way to differentiate different instances of the same form type. Is this actually the case or havent I read the code closely enough? You have a page: editWotsits.jsp that uses the WotsitActionForm and submits to WotsitAction. The requirement is that the wotsit pages open in new windows (ie: -----Original Message----- From: Eddie Bush [mailto:ekbush@swbell.net] Sent: Wednesday, December 18, 2002 11:34 To: Struts Users Mailing List Subject: Re: how to send actionForm from one action to another action It's actually a combination of the module name and the form name. Now that we have modules, a strategy has to be used which allows each module to have forms of the same name. The source code would definitely be the place to see exactly how the name is arrived at - I'd tell you, but I haven't looked at it since it was updated. Taylor Cowan wrote: >>Hi, how to send actionForm from one action to another action. >> >> >If the form is specified as "session" scope in struts-config, it will always >be available to you from req.getSession().getAttribute(key). > >I don't know exactly what key struts uses, but it could be found out by >reading the source code or inspecting all keys in your session scope. My >guess is that it's the form's name, which should be unique. > >Taylor cowan > -- Eddie Bush -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: