Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 28268 invoked by uid 500); 24 Sep 2001 14:48:16 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 28249 invoked from network); 24 Sep 2001 14:48:15 -0000 Date: Mon, 24 Sep 2001 09:42:53 -0500 From: Sulman.Jeff@epamail.epa.gov Subject: RE: Beans and Forms To: tomcat-user@jakarta.apache.org Message-id: MIME-version: 1.0 X-Mailer: Lotus Notes Release 5.0.1a August 17, 1999 Content-type: text/plain; charset=us-ascii X-MIMETrack: Serialize by Router on EPAHUB11/USEPA/US(Release 5.0.6a |January 17, 2001) at 09/24/2001 10:42:57 AM X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N >This way lies madness. The web is not a VB App. :-) I know! I did not choose this application but was given it. > Try having the second form submitted by an onload javascript function in the > page returned by the first servlet call. Tried this. We are using Netscape 4.x and the unload event does not work properly in frames. Brett Knights cc: Subject: RE: Beans and Forms 09/24/01 09:14 AM Please respond to tomcat-user This way lies madness. The web is not a VB App. :-) Try having the second form submitted by an onload javascript function in the page returned by the first servlet call. HTH > -----Original Message----- > From: Sulman.Jeff@epamail.epa.gov [mailto:Sulman.Jeff@epamail.epa.gov] > Sent: Monday, September 24, 2001 6:32 AM > To: tomcat-user@jakarta.apache.org > Subject: Beans and Forms > > > I have a series of tabs I created in a window that holds data for an > application. When the tabs are selected the data on the > current form is > submitted to a servlet where beans save the data. Once the > data is stored > in the bean then the data corresponding to the selected tab > is loaded into > the form from a differnet bean (the forms are on frames). > > Without getting into too many details I am having a problem > w/one specific > case where I need to submit two forms, and update two beans > before I load > the data from the bean into the new form. > > Here is what is happening. > 1. A JavaScript function submits one form where the action > is a servlet. > The servlet then calls a bean, which is updated with the data from the > form. > 2. A second form is then submitted using the same servlet, > which updates > a different bean with the data from the form. > 3. After the second form is submitted the servlet forwards > a JSP to that > form which loads the data from a third bean into it. > > What is happening is that the first form I am submitting is > not updating > the bean. I can get it to update by putting an alert box between the > submittal of the first form and the second or by putting a > large while loop > between the two submittals. However, left to themselves I > cannot get the > first form to update. It also updates when it is not > submitted after the > second form. > > What is the problem? I suspect it has something to do with > synchronization. If this is the case could someone give me > any direction? > > The beans are also being stored in the session object if that > helps and > each bean is a separate object. > > > Thanks in advance > > jeff > > >