You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Asim Ghosh <as...@yahoo.co.uk> on 2004/11/05 08:15:29 UTC

Multiple forms in JSP using struts

hello all,
 
  how can i manage multiple forms in on jsp using struts. In struts-config.xml can I mention two form names in <action>. If no how can this be achieved ?
 
Regards,
Asim

		
---------------------------------
 ALL-NEW Yahoo! Messenger - all new features - even more fun!  

Re: Multiple forms in JSP using struts

Posted by Koushik <ko...@ontrackindia.com>.
I agree with u that Action Forms should not session scoped unless required
but i guess the question was whether u can use mulitple forms in jsp,i.e.
<html:form>.
I hope i have guess it right?

----- Original Message -----
From: "Freddy Villalba A." <fv...@pericless.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Friday, November 05, 2004 1:42 PM
Subject: RE: Multiple forms in JSP using struts


> I've never liked this since I've always thought that, if one uses this
> approach, as soon as one of those forms requires "remembering" its values,
> all (action)forms (including that one) are "forced" to having "session"
> scope (then you'd have to setup a garbage collection process for those
> session forms).
>
> Am I right?
>
> F.
>
> -----Mensaje original-----
> De: Koushik [mailto:koushik@ontrackindia.com]
> Enviado el: viernes, 05 de noviembre de 2004 8:23
> Para: Struts Users Mailing List
> Asunto: Re: Multiple forms in JSP using struts
>
>
> U can use multiple forms in ur jsp and for each action in ur form,i.e.
when
> u  r posting it, u need to have a separate set of mappings in the
> struts-config.xml.
>
> ----- Original Message -----
> From: "Asim Ghosh" <as...@yahoo.co.uk>
> To: <us...@struts.apache.org>
> Sent: Friday, November 05, 2004 12:45 PM
> Subject: Multiple forms in JSP using struts
>
>
> > hello all,
> >
> >   how can i manage multiple forms in on jsp using struts. In
> struts-config.xml can I mention two form names in <action>. If no how can
> this be achieved ?
> >
> > Regards,
> > Asim
> >
> >
> > ---------------------------------
> >  ALL-NEW Yahoo! Messenger - all new features - even more fun!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Multiple forms in JSP using struts

Posted by "Freddy Villalba A." <fv...@pericless.com>.
I've never liked this since I've always thought that, if one uses this
approach, as soon as one of those forms requires "remembering" its values,
all (action)forms (including that one) are "forced" to having "session"
scope (then you'd have to setup a garbage collection process for those
session forms).

Am I right?

F.

-----Mensaje original-----
De: Koushik [mailto:koushik@ontrackindia.com]
Enviado el: viernes, 05 de noviembre de 2004 8:23
Para: Struts Users Mailing List
Asunto: Re: Multiple forms in JSP using struts


U can use multiple forms in ur jsp and for each action in ur form,i.e. when
u  r posting it, u need to have a separate set of mappings in the
struts-config.xml.

----- Original Message -----
From: "Asim Ghosh" <as...@yahoo.co.uk>
To: <us...@struts.apache.org>
Sent: Friday, November 05, 2004 12:45 PM
Subject: Multiple forms in JSP using struts


> hello all,
>
>   how can i manage multiple forms in on jsp using struts. In
struts-config.xml can I mention two form names in <action>. If no how can
this be achieved ?
>
> Regards,
> Asim
>
>
> ---------------------------------
>  ALL-NEW Yahoo! Messenger - all new features - even more fun!


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Multiple forms in JSP using struts

Posted by Koushik <ko...@ontrackindia.com>.
U can use multiple forms in ur jsp and for each action in ur form,i.e. when
u  r posting it, u need to have a separate set of mappings in the
struts-config.xml.

----- Original Message -----
From: "Asim Ghosh" <as...@yahoo.co.uk>
To: <us...@struts.apache.org>
Sent: Friday, November 05, 2004 12:45 PM
Subject: Multiple forms in JSP using struts


> hello all,
>
>   how can i manage multiple forms in on jsp using struts. In
struts-config.xml can I mention two form names in <action>. If no how can
this be achieved ?
>
> Regards,
> Asim
>
>
> ---------------------------------
>  ALL-NEW Yahoo! Messenger - all new features - even more fun!


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org