Nir,
The JSP doesn't care which beans the properties on the form are assigned to.
If you create a bean (<jsp:useBean>)
and then use <jsp:setProperty property="*" name=BEANNAME>, the jsp engine
will look for parameters in the
request that correspond to properties of the bean, and assign values
accordingly. You can use as many beans as
you would like - it makes no difference which bean you use. (In fact, you
can even assign one request parameter
to more than one bean if you have information required for different
purposes.)
-AMT
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Nir Daniel
> Sent: Tuesday, February 01, 2000 3:37 AM
> To: [EMAIL PROTECTED]
> Subject: set property
>
>
> Hi,
>
> How can I invoke setter methods on two different classes using one form?
>
> Thanks,
> Nir
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html