You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Alex Colic <al...@pop-ware.com> on 2001/08/08 16:48:31 UTC
Advice on how to implement the following:
Hi,
I need a bit of advice on how to implement the following. I am creating a
page that holds a list of item names along with their description. So far I
created a vector that holds an array of items and then passes it to a Struts
page in the request scope. The page then iterates the array and then
produces the page. So far no problem.
Now I need to add a text field in which the user can input prices for these
items. Then I need that form submitted to my actionservlet for processing.
This is where I get lost.
I thought of adding a price field to my item class and then as the vector is
iterated on the page I create a textfield binding it to the price field in
the bean. But when the page is submitted I don't think the vector will be
passed to my action servlet for parsing.
Any help is appreciated
Alex