Oct 4th, 2006, 02:39 PM
Adding text boxes to jsp dynamically based on a value
I have a requirement where when I enter a value in a text box. The value will determine how many text boxes I should display in another jsp. What is the best way to do this.
For e.g if user enters "uq-6" on first jsp
The second jsp should show 6 text boxes including the first input box.
The way I am approaching is that I have created 1 jsp that has a Form Controller. The Form controller has 1 command object.
I put the logic in onSubmit method to grab the value that the user entered and then create text boxes.
How do I change the Command object and then pass it to my ModelAndView so that I can render the text boxes. Also I would want to know how to bind the text boxes with the Command Object in my 2nd jsp where I have the text boxes
Oct 5th, 2006, 11:21 AM
Pls answer this
Can somebody answer this post