Discussions

Web tier: servlets, JSP, Web frameworks: Dynamic struts-forms

  1. Dynamic struts-forms (2 messages)

    I have the following problem, maybe there's a pattern for but I have no idea.

    I have to dynamicly create forms depending on a specific code.

    to be clear: I have the first form, where the user selects a code (1-300), when he submits the user should be redirected to a form whit code specific imput fields depending on the code given earlier.

    How would you solve this problem ?

    Threaded Messages (2)

  2. Dynamic struts-forms[ Go to top ]

    create a map backed form

    http://jakarta.apache.org/struts/userGuide/building_controller.html#map_action_form_classes
  3. Dynamic struts-forms[ Go to top ]

    the input fields are not only text, but can be combo / dropdown lists...

    the backend what code needs what inputs fields is stored in xml atm, but I guess this can be anything from flat files to an db (but doesn't really matter here)

    I just read it and then I need to make a form from it dynamicly ... not only input fields