RE: Multiple forms in one JSP + one Action

2004-08-12 Thread Kataria, Satish
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 giv

Re: Multiple forms in one JSP + one Action

2004-08-12 Thread Michael McGrady
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 ask

RE: Multiple forms in one JSP + one Action

2004-08-12 Thread Jim Barrows
> -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 g

RE: Multiple forms in one JSP + one Action

2004-08-12 Thread Hollaway, Shedrick CIV (TRFKB C600)
> Sent: Thursday, August 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 >

Re: Multiple forms in one JSP + one Action

2004-08-12 Thread Rick Reumann
Rick Reumann wrote: Sorry this of course should be -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Multiple forms in one JSP + one Action

2004-08-12 Thread Rick Reumann
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).

RE: Multiple forms in one JSP + one Action

2004-08-12 Thread Jim Barrows
> -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

RE: Multiple forms in one JSP + one Action

2004-08-12 Thread Jim Barrows
> -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 > multip

RE: Multiple forms in one JSP + one Action

2004-08-12 Thread Hollaway, Shedrick CIV (TRFKB C600)
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 fie

Re: Multiple forms in one JSP + one Action

2004-08-12 Thread Rick Reumann
Hollaway, Shedrick CIV (TRFKB C600) wrote: This is what I wanted to do without using any javascript. <%-- first form stuff -- using formA --%> <%-- second form stuff -- using formB -- displayed%> First Contact: value="${contact[0].fullName}" readonly="false"/>

Re: Multiple forms in one JSP + one Action

2004-08-12 Thread Thomas SMETS
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,

RE: Multiple forms in one JSP + one Action

2004-08-12 Thread Hollaway, Shedrick CIV (TRFKB C600)
Rick wrote: Guys, This is what I wanted to do without using any javascript. <%-- first form stuff -- using formA --%> <%-- second form stuff -- using formB -- displayed%> First Contact: <%-- t

Re: Multiple forms in one JSP + one Action

2004-08-12 Thread Rick Reumann
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

Re: Multiple forms in one JSP + one Action

2004-08-12 Thread Michael McGrady
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! --

Re: Multiple forms in one JSP + one Action

2004-08-12 Thread ppk123
CTED]> Sent: Thursday, August 12, 2004 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

Re: Multiple forms in one JSP + one Action

2004-08-12 Thread Rick Reumann
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 you

RE: Multiple forms in one JSP + one Action

2004-08-12 Thread Hollaway, Shedrick CIV (TRFKB C600)
thanks, Shed -Original 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 a

Re: Multiple forms in one JSP + one Action

2004-08-12 Thread Rick Reumann
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: <%-- first form stuff -- using formA --%> <%-- se

Re: Multiple forms in one JSP + one Action

2004-08-12 Thread Michael McGrady
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? Mic