In the doList() method of the action, I need to add another iterator that should be populated by id of the exiting list (employee.employeeid)
I have already created a table in the database with this relationship. I have also got the service, model and dao to extract the data from the database by a given employeeid. But I am completely lost as to how and where to pass the employeeid parameter to populate the sub-list to generate the nested iterator.
Any ideas how to connect the nested list. This nested list is supposed to populate different form fields. For example, radio buttons, check boxes etc...
I have a requirement to build an online questionnnaire in two languages using Sturts 2 framework. The questions are a combination of various form fields (eg. text, dropdown, radio and checkboxes) - roughly 15-20 questions.
I am trying to figure out a way to generate the questions for this questionnaire. What is the best approach - storing the questions in the database or in the resources file?
In the code sample provided by Sunder Ganapathy for the dropdown, is there a posibility to pass locale from jsp to the DAO?
My database table is setup for different locales and I am currently working with something like this: ("select * FROM tablename WHERE tablename.locale='en_CA'")
I need the locale to change when user switches language. I am thinking of keeping locale in a session variable but not sure if it would be a good practice to specify session variable in the WHERE clause. Are there other better options?