Announcement Announcement Module
Collapse
No announcement yet.
Adding text boxes to jsp dynamically based on a value Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

    Please help

  • #2
    Pls answer this

    Can somebody answer this post

    Comment

    Working...
    X