Why would you want to have an action related to 2 forms.
A form typically means a business functionality and an action is the
trigger for that business functionality.
If you are saying that a single functionality encompasses more than one
form then there is problem in the design.
I think u shld
At 05:50 AM 8/12/2004, you wrote:
I am unable to find a solution or an alternate way of having multiple forms
in one jsp and upon submit one action handling all forms.The jsp will have
the forms as follows:
You can have many forms but can submit only one at a time. What are you
trying to do?
Hollaway, Shedrick CIV (TRFKB C600) wrote:
I am unable to find a solution or an alternate way of having multiple forms
in one jsp and upon submit one action handling all forms.The jsp will have
the forms as follows:
html:form
%-- first form stuff -- using formA --%
html:form
Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 12, 2004 9:36 AM
To: Struts Users Mailing List
Subject: Re: Multiple forms in one JSP + one Action
At 05:50 AM 8/12/2004, you wrote:
I am unable to find a solution or an alternate way of having multiple forms
in one
Hollaway, Shedrick CIV (TRFKB C600) wrote:
Micheal
I was trying to submit all three at one time.
I've been doing Struts for a long time now and have never run across a
case where I had to do submit more than one form from one click. You can
have as many forms as you want on a page though and
4:20 PM
Subject: Re: Multiple forms in one JSP + one Action
Hollaway, Shedrick CIV (TRFKB C600) wrote:
Micheal
I was trying to submit all three at one time.
I've been doing Struts for a long time now and have never run across a
case where I had to do submit more than one form from
ppk123 wrote:
you can submit multiple forms using javascript like
document.forms[0].submit(); .. and so on..
keep in mind to have different targets for each forms.
This is, I think, just going to confuse this guy. Tell us what you want
to do, guy!
ppk123 wrote:
you can submit multiple forms using javascript like
document.forms[0].submit(); .. and so on..
keep in mind to have different targets for each forms.
Yea there are ton of Javascript tricks you can do but usually you want
to avoid this kind of stuff if possible. My guess is there is
Rick wrote:
Guys,
This is what I wanted to do without using any javascript.
html:form
%-- first form stuff -- using formA --%
html:text name=formA property=firstName readonly=true /
html:text name=formA property=lastName readonly=true /
html:text name=formA property=homePhone
First form has among other things:
two attributes of the type formB1 formB2 (with the accessors getFormB1
getFormB2).
The fields in the forms are then named :
_ formB1.name, formB1.surname
_ formB2.name, formB2.surname
Don't forget to instanciate in the FormABean the two sub beans.
\T,
I
Hollaway, Shedrick CIV (TRFKB C600) wrote:
This is what I wanted to do without using any javascript.
html:form
%-- first form stuff -- using formA --%
html:text name=formA property=firstName readonly=true /
html:text name=formA property=lastName readonly=true /
html:text name=formA
Rick, my apologies for being unclear here, html:text is html-el:text and I
am using JSTL to retrieve data and iterate with (c:foreach). There are alot
more fields involve here each ActionForm corrolate to a database
tables(Atable = Aform, Btable = Bform). I would like the user to be able
update
-Original Message-
From: Hollaway, Shedrick CIV (TRFKB C600)
[mailto:[EMAIL PROTECTED]
Sent: Thursday, August 12, 2004 5:51 AM
To: '[EMAIL PROTECTED]'
Subject: Multiple forms in one JSP + one Action
I am unable to find a solution or an alternate way of having
multiple forms
-Original Message-
From: Hollaway, Shedrick CIV (TRFKB C600)
[mailto:[EMAIL PROTECTED]
Sent: Thursday, August 12, 2004 8:28 AM
To: 'Struts Users Mailing List'
Subject: RE: Multiple forms in one JSP + one Action
Rick, my apologies for being unclear here, html:text is
html
Hollaway, Shedrick CIV (TRFKB C600) wrote:
Rick, my apologies for being unclear here, html:text is html-el:text and I
am using JSTL to retrieve data and iterate with (c:foreach). There are alot
more fields involve here each ActionForm corrolate to a database
tables(Atable = Aform, Btable = Bform).
Rick Reumann wrote:
html:form name=updateUser
Sorry this of course should be
html:form action=updateUser
--
Rick
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
12, 2004 12:05 PM
To: Struts Users Mailing List
Subject: Re: Multiple forms in one JSP + one Action
Hollaway, Shedrick CIV (TRFKB C600) wrote:
Rick, my apologies for being unclear here, html:text is
html-el:text and I
am using JSTL to retrieve data and iterate with
(c:foreach
-Original Message-
From: Hollaway, Shedrick CIV (TRFKB C600)
[mailto:[EMAIL PROTECTED]
Sent: Thursday, August 12, 2004 9:13 AM
To: 'Struts Users Mailing List'
Subject: RE: Multiple forms in one JSP + one Action
Thanks to all, for gliding me back to the light. Jim, you
were
Hollaway, Shedrick CIV (TRFKB C600) wrote:
Rick wrote:
Guys,
This is what I wanted to do without using any javascript.
Why don't you just tell us what you want to do without giving the html?
Then we can see what html you really might need. If your html were
adequate, you would not have to
19 matches
Mail list logo