Results 1 to 2 of 2

Thread: Adding text boxes to jsp dynamically based on a value

  1. #1
    Join Date
    May 2006
    Posts
    5

    Unhappy 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. #2
    Join Date
    May 2006
    Posts
    5

    Default Pls answer this

    Can somebody answer this post

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •