Re: multi form pages

2003-05-30 Thread Vic Cekvenich
Read up on nesting beans.

Fernando Jimenez wrote:

Hi Mike

You are correct, but that's exactly what I said in my message.

My problem is that if an Action is associated with an ActionForm, how can I populate two different ActionForms from a single action? well, more like, how can I populate two different ActionForms?

Thanks

FJ



 

Hi

I am trying to design a page with two action forms in it. This
should not be too big a problem. Just have two action classes and
two action forms, one for each form.
My problem is that I need to populate _both_ forms with some
values, prior to page display. Does anyone know how I can do this?
to my knowledge, an Action class is only associated with a single
ActionForm, so I can't see a straight way to do this
   

I think that an ActionForm is not associated with an HTML form rather it is
associated with an Action, this is why it is registered in an action mapping
rather than the  element
--
Mike W
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
 

--
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA
Advanced Struts Training and project recovery in North East. 
Open Source Content Management  basicPortal sofware
Best practiceStruts Support v.1.1 helper ScafflodingXPress




Re: multi form pages

2001-09-26 Thread Will Jaynes

I can't find where it is in the specification, but I believe that nested forms
are not permitted.

- Original Message -
From: "Michelle Popovits" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 26, 2001 11:16 AM
Subject: Re: multi form pages



Has anyone tried embedding a form within a form.
In which case when the embedded form is submitted only parms within the form
would be submitted, and when the outer form is submitted would it include
all parms including those within it's embedded forms.
I haven't tried this, but I would be interested in hearing if others have
(or if it's even possible).  Some of my designs might use this approach (but
then again I might redesign them a different way if it's too convoluted).

Michelle






Re: multi form pages

2001-09-26 Thread David Winterfeldt

I don't think you can embed a form in a form in a
standard html form.  You could use JavaScript to copy
values from an inner form to hidden fields in the
outer form when it is submitted though.

David

--- Michelle Popovits <[EMAIL PROTECTED]> wrote:
> 
> Has anyone tried embedding a form within a form.
> In which case when the embedded form is submitted
> only parms within the form 
> would be submitted, and when the outer form is
> submitted would it include 
> all parms including those within it's embedded
> forms.
> I haven't tried this, but I would be interested in
> hearing if others have 
> (or if it's even possible).  Some of my designs
> might use this approach (but 
> then again I might redesign them a different way if
> it's too convoluted).
> 
> Michelle
> 
> 
> 
> >From: [EMAIL PROTECTED]
> >Reply-To: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: Re: multi form pages
> >Date: 26 Sep 2001 07:44:57 -0700
> >
> >What you are asking is really an HTML question.  I
> don't believe you will 
> >have any problem with multiple forms on a single
> page.  However, I do 
> >believe that only the parameters of the submitted
> form will be sent to the 
> >server.
> >
> >I've never tried this and am willing to be
> corrected by anyone who knows 
> >for certain!
> >
> >On Wed, 26 September 2001, "Hogan, John" wrote:
> >
> > >
> > >  Transitional//EN">
> > > 
> > >  CONTENT="text/html; charset=iso-8859-1">
> > >
> > >
> > >  name=GENERATOR>
> > > 
> > >  face=Arial size=2> > > class=636530314-26092001>There's been quite a
> bit of discussion on the 
> >list
> > > about multi-page forms, but nothing on
> multi-form
> > > pages.
> > >  
> > >  size=2> >face=Arial>D > > class=636530314-26092001>oes anyone know if
> a single jsp > > class=636530314-26092001> can contain
> more than one form
> > > section that
> reference 
> >different
> > > ActionForm objects? class=636530314-26092001> 
> > > TIA.
> > >  class=636530314-26092001>  >size=2> > > face=Arial>
> > > 
>class=636530314-26092001>JohnH
> > >  > >
> class=636530314-26092001> 
> > >  > >
>
class=636530314-26092001> 
> >
> >--
> >Steven Valin
> >[EMAIL PROTECTED]
> 
> 
>
_
> Get your FREE download of MSN Explorer at
> http://explorer.msn.com/intl.asp
> 


__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. 
http://im.yahoo.com



RE: multi form pages

2001-09-26 Thread Hogan, John

forms cannot be nested.

-Original Message-
From: Michelle Popovits [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 11:16 AM
To: [EMAIL PROTECTED]
Subject: Re: multi form pages



Has anyone tried embedding a form within a form.
In which case when the embedded form is submitted only parms within the form

would be submitted, and when the outer form is submitted would it include 
all parms including those within it's embedded forms.
I haven't tried this, but I would be interested in hearing if others have 
(or if it's even possible).  Some of my designs might use this approach (but

then again I might redesign them a different way if it's too convoluted).

Michelle



>From: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: multi form pages
>Date: 26 Sep 2001 07:44:57 -0700
>
>What you are asking is really an HTML question.  I don't believe you will 
>have any problem with multiple forms on a single page.  However, I do 
>believe that only the parameters of the submitted form will be sent to the 
>server.
>
>I've never tried this and am willing to be corrected by anyone who knows 
>for certain!
>
>On Wed, 26 September 2001, "Hogan, John" wrote:
>
> >
> > 
> > 
> > 
> >
> >
> > 
> > 
> >  > class=636530314-26092001>There's been quite a bit of discussion on the 
>list
> > about multi-page forms, but nothing on multi-form
> > pages.
> >  
> > face=Arial>D > class=636530314-26092001>oes anyone know if a single jsp > class=636530314-26092001> can contain more than one form
> > section that reference 
>different
> > ActionForm objects? 
> > TIA.
> >  size=2> > face=Arial>
> > class=636530314-26092001>JohnH
> >  > class=636530314-26092001> 
> >  > class=636530314-26092001> 
>
>--
>Steven Valin
>[EMAIL PROTECTED]


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp



RE: multi form pages

2001-09-26 Thread Nathan Anderson

Michelle,

I'm pretty sure that the HTML spec does not allow for that.  But I'm not
sure what the usefulness of such a feature would be anyway.  It would be
much simpler just to ignore the values you didn't want if the "inner form"
was submitted.

Nathan Anderson

-Original Message-
From: Michelle Popovits [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 8:16 AM
To: [EMAIL PROTECTED]
Subject: Re: multi form pages



Has anyone tried embedding a form within a form.
In which case when the embedded form is submitted only parms within the form
would be submitted, and when the outer form is submitted would it include
all parms including those within it's embedded forms.
I haven't tried this, but I would be interested in hearing if others have
(or if it's even possible).  Some of my designs might use this approach (but
then again I might redesign them a different way if it's too convoluted).

Michelle



>From: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: multi form pages
>Date: 26 Sep 2001 07:44:57 -0700
>
>What you are asking is really an HTML question.  I don't believe you will
>have any problem with multiple forms on a single page.  However, I do
>believe that only the parameters of the submitted form will be sent to the
>server.
>
>I've never tried this and am willing to be corrected by anyone who knows
>for certain!
>
>On Wed, 26 September 2001, "Hogan, John" wrote:
>
> >
> > 
> > 
> > 
> >
> >
> > 
> > 
> >  > class=636530314-26092001>There's been quite a bit of discussion on the
>list
> > about multi-page forms, but nothing on multi-form
> > pages.
> >  
> > face=Arial>D > class=636530314-26092001>oes anyone know if a single jsp > class=636530314-26092001> can contain more than one form
> > section that reference
>different
> > ActionForm objects? 
> > TIA.
> >  size=2> > face=Arial>
> > class=636530314-26092001>JohnH
> >  > class=636530314-26092001> 
> >  > class=636530314-26092001> 
>
>--
>Steven Valin
>[EMAIL PROTECTED]


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp





Re: multi form pages

2001-09-26 Thread Michael Baldwin

Nested forms are not supported by IE and Netscape.  I know that you will not be
able to post the values of a child form when the parent is submitted.  Depending
on the browser's implementation of the HTML standards you should get fairly
wacky effects...

I suggest that you make one form with different values assigned to the various
action buttons and then use the action object to read the button's value and
then determine how to respond to the request.

Hope this helps.
--Michael


Michelle Popovits wrote:

> Has anyone tried embedding a form within a form.
> In which case when the embedded form is submitted only parms within the form
> would be submitted, and when the outer form is submitted would it include
> all parms including those within it's embedded forms.
> I haven't tried this, but I would be interested in hearing if others have
> (or if it's even possible).  Some of my designs might use this approach (but
> then again I might redesign them a different way if it's too convoluted).
>
> Michelle
>
> >From: [EMAIL PROTECTED]
> >Reply-To: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: Re: multi form pages
> >Date: 26 Sep 2001 07:44:57 -0700
> >
> >What you are asking is really an HTML question.  I don't believe you will
> >have any problem with multiple forms on a single page.  However, I do
> >believe that only the parameters of the submitted form will be sent to the
> >server.
> >
> >I've never tried this and am willing to be corrected by anyone who knows
> >for certain!
> >
> >On Wed, 26 September 2001, "Hogan, John" wrote:
> >
> > >
> > > 
> > > 
> > > 
> > >
> > >
> > > 
> > > 
> > >  > > class=636530314-26092001>There's been quite a bit of discussion on the
> >list
> > > about multi-page forms, but nothing on multi-form
> > > pages.
> > >  
> > >  >face=Arial>D > > class=636530314-26092001>oes anyone know if a single jsp > > class=636530314-26092001> can contain more than one form
> > > section that reference
> >different
> > > ActionForm objects? 
> > > TIA.
> > >   >size=2> > > face=Arial>
> > >  >class=636530314-26092001>JohnH
> > >  > > class=636530314-26092001> 
> > >  > > class=636530314-26092001> 
> >
> >--
> >Steven Valin
> >[EMAIL PROTECTED]
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




Re: multi form pages

2001-09-26 Thread dhay



Pretty sure this is not allowed in html, so won't be allowed in Struts.

Dave





"Michelle Popovits" <[EMAIL PROTECTED]> on 09/26/2001
11:16:04 AM

Please respond to [EMAIL PROTECTED]; Please
  respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Re: multi form pages




Has anyone tried embedding a form within a form.
In which case when the embedded form is submitted only parms within the form
would be submitted, and when the outer form is submitted would it include
all parms including those within it's embedded forms.
I haven't tried this, but I would be interested in hearing if others have
(or if it's even possible).  Some of my designs might use this approach (but
then again I might redesign them a different way if it's too convoluted).

Michelle



>From: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: multi form pages
>Date: 26 Sep 2001 07:44:57 -0700
>
>What you are asking is really an HTML question.  I don't believe you will
>have any problem with multiple forms on a single page.  However, I do
>believe that only the parameters of the submitted form will be sent to the
>server.
>
>I've never tried this and am willing to be corrected by anyone who knows
>for certain!
>
>On Wed, 26 September 2001, "Hogan, John" wrote:
>
> >
> > 
> > 
> > 
> >
> >
> > 
> > 
> >  > class=636530314-26092001>There's been quite a bit of discussion on the
>list
> > about multi-page forms, but nothing on multi-form
> > pages.
> >  
> > face=Arial>D > class=636530314-26092001>oes anyone know if a single jsp > class=636530314-26092001> can contain more than one form
> > section that reference
>different
> > ActionForm objects? 
> > TIA.
> >  size=2> > face=Arial>
> > class=636530314-26092001>JohnH
> >  > class=636530314-26092001> 
> >  > class=636530314-26092001> 
>
>--
>Steven Valin
>[EMAIL PROTECTED]


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp










Re: multi form pages

2001-09-26 Thread Michelle Popovits


Has anyone tried embedding a form within a form.
In which case when the embedded form is submitted only parms within the form 
would be submitted, and when the outer form is submitted would it include 
all parms including those within it's embedded forms.
I haven't tried this, but I would be interested in hearing if others have 
(or if it's even possible).  Some of my designs might use this approach (but 
then again I might redesign them a different way if it's too convoluted).

Michelle



>From: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: multi form pages
>Date: 26 Sep 2001 07:44:57 -0700
>
>What you are asking is really an HTML question.  I don't believe you will 
>have any problem with multiple forms on a single page.  However, I do 
>believe that only the parameters of the submitted form will be sent to the 
>server.
>
>I've never tried this and am willing to be corrected by anyone who knows 
>for certain!
>
>On Wed, 26 September 2001, "Hogan, John" wrote:
>
> >
> > 
> > 
> > 
> >
> >
> > 
> > 
> >  > class=636530314-26092001>There's been quite a bit of discussion on the 
>list
> > about multi-page forms, but nothing on multi-form
> > pages.
> >  
> > face=Arial>D > class=636530314-26092001>oes anyone know if a single jsp > class=636530314-26092001> can contain more than one form
> > section that reference 
>different
> > ActionForm objects? 
> > TIA.
> >  size=2> > face=Arial>
> > class=636530314-26092001>JohnH
> >  > class=636530314-26092001> 
> >  > class=636530314-26092001> 
>
>--
>Steven Valin
>[EMAIL PROTECTED]


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




Re: multi form pages

2001-09-26 Thread steven . valin

What you are asking is really an HTML question.  I don't believe you will have any 
problem with multiple forms on a single page.  However, I do believe that only the 
parameters of the submitted form will be sent to the server.

I've never tried this and am willing to be corrected by anyone who knows for certain!

On Wed, 26 September 2001, "Hogan, John" wrote:

> 
> 
> 
> 
> 
> 
> 
> 
>  class=636530314-26092001>There's been quite a bit of discussion on the list 
> about multi-page forms, but nothing on multi-form 
> pages.
>  
> D class=636530314-26092001>oes anyone know if a single jsp class=636530314-26092001> can contain more than one form 
> section that reference different 
> ActionForm objects?  
> TIA.
>   face=Arial>
> JohnH
>  class=636530314-26092001> 
>  class=636530314-26092001> 

--
Steven Valin
[EMAIL PROTECTED]



Re: multi form pages

2001-09-26 Thread Tom Tibbetts

I don't see why not.  Each form is an entity on to
itself
At 10:10 AM 9/26/01 -0400, you wrote:
There's
been quite a bit of discussion on the list about multi-page forms, but
nothing on multi-form pages.
 
Does anyone know if a single jsp can contain
more than one form section that reference different ActionForm
objects?  TIA.
 
JohnH