Hi all, I have recently started playing around with struts 2 framework. And I have an interesting problem that I wanna solve with Struts. We are creating a survey from the questions stored in database and even the options like yes/no/other/comment fields come from the database. Even the html type is stored in the database. Now, I have to create the right html type input element based on that html type value stored in database.
For e.g. If the question is say : Questions 1 : Are you a citizen of USA ? option 1 : Yes <radio> option 2 : No <radio> option 3 : If other, please specify <text field> This is just a sample question but there are millions like this which have options that are more than one html type. Now, how do I go about this? Is there a plugin/extension for struts that would let me dynamically select the UI component type? Any suggestions are welcome and are really appreciated. Thank you! -- Cheers, John