I am creating a list on my first JSP by typing in values, clicking a button an appending the value to a list. I would like to take this list from this JSP and populate a list on a second JSP. The first list establishes a main directory list. The second adds data to each category.
Originally posted by Steve Dyke: I am creating a list on my first JSP by typing in values, clicking a button an appending the value to a list. I would like to take this list from this JSP and populate a list on a second JSP. The first list establishes a main directory list. The second adds data to each category.
Yes I am posting back to server. I have this issue resolved. Thanks for the help.
Another alternative would be to store them on the server as session variables so that the servlet already has access to them and they don't need to make the round trip to the browser and back.
Without knowing more of your requirement, it's hard to say what the best approach will be for you.
Joined: Nov 16, 2004
Here goes my best explanation.
The user opens up a form(JSP). It prompts them to supply a list of part numbers that will eventually populate a Buyer Furnished Equipment List(a report that will be displayed in an excel format). On this form there is three input boxes and one listbox and two buttons.
The inputboxes: one for part number, one for configuration, one for quantity.
The Listbox: used for recieving and displaying user input.
The buttons: One button is a general button and is used after the three input boxes are populated to populate the listbox with one item that is a concatination of the values. Then the three input boxes are cleared. The user can type in another set of values, click the button and this set of values are added to the listbox thus creating a list(not a select list in this case but an input array of values).
The second button is a submit button that calls the servlet.
How do I pass the contents of the list that was just created(all of it) to my servlet so the items will be treated as an array of values?