Thanks for your help. I ended up doing something similar to this. I had
intended to package the request info into the Order beans and then forward
to a servlet to do some database checking. So I reversed the order a bit
and POST to the servlet, have it construct the beans, attach them to the
session, do validation, then forward to a JSP to respond to the user.
Seems to work well and since I'm still learning tablib support in JSP I'm not
as comfortable with that kind of solution.
Again, many thanks.
Kevin
> Date: Tue, 22 May 2001 18:55:00 -0700
> From: [EMAIL PROTECTED]
> Subject: Re: useBean, setProperty, and repeating form
> fields
> MIME-Version: 1.0
> Content-Type: text/plain; charset=us-ascii
>Content-Transfer-Encoding: 7bit
>
>
>No, indexed properties will not work here. They work only for a set of
>parameters with the same name, for instance for a group of check boxes or
>radio buttons.
>
>In your case, all parameters have unique names ending with a sequence
>number, as they should since you're group multiple pieces of info (part
>number, quantity and price) that's all related by the sequence number.
>
>I suggest that you use a custom action to handle this. It can read all
>request parameters, create a bean for each order, and maybe make it
>available to the rest of the application as a Vector of beans. Something
>like this:
>
>Hans
>--
>Hans Bergsten [EMAIL PROTECTED]
>Gefion Software http://www.gefionsoftware.com
>Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets