Mike,
I would recommend using a framework like Struts. It will help you alot.
Southin
-----Original Message-----
From: Mike Dewhirst [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 10:35 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Beans and Forms
I don't quite understand why you can't have one big form submitted to one
servlet? It(servlet) could then selectively process it (form).
Alternatively, you could have javascript create external windows with a form
each, submit those and close the windows.
I would recommend the first approach, however I have tried the second one
and it works too.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 24 September 2001 15:43
To: [EMAIL PROTECTED]
Subject: RE: Beans and Forms
>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
<brett.knights@t To:
[EMAIL PROTECTED]
anner.com> 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 24, 2001 6:32 AM
> To: [EMAIL PROTECTED]
> 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
>
>
>
=**********************************************************
If you are not the intended recipient, employee or agent responsible for
delivering the message to the intended recipient, you are hereby notified
that any dissemination or copying of this communication and its attachments
is strictly prohibited.
If you have received this communication and its attachments in error, please
return the original message and attachments to the sender using the reply
facility on e-mail.
Internet communications are not secure and therefore the UCLES Group does
not accept legal responsibility for the contents of this message. Any views
or opinions presented are solely those of the author and do not necessarily
represent those of the UCLES Group unless otherwise specifically stated.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not
guarantee that this email is virus free.
**********************************************************=