aspose file tools*
The moose likes Struts and the fly likes Map dynamically generated HTML select(s) control in form bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Map dynamically generated HTML select(s) control in form bean" Watch "Map dynamically generated HTML select(s) control in form bean" New topic
Author

Map dynamically generated HTML select(s) control in form bean

Asad Imtiaz
Greenhorn

Joined: Aug 01, 2008
Posts: 21
I have search screen in which the user can filter search using conditions on columns and he can add any number of conditions (0 or more).


The each filter line is as follows




By clicking the "+" sign you can create a new filter which is simple done via javascript innerHTML.

The generated HTML looks something like this. Its not a complete HTML but just to give you an idea.




My goal is to get these condition filters in my action class with as less hassle as possible.
How can I map this whole condition filter to my Form bean. How can this be achieved in a elegant way ?


Thank you.

 
Consider Paul's rocket mass heater.
 
subject: Map dynamically generated HTML select(s) control in form bean