Hi,
I am trying to generate the <html
ption> tags in my action class and store it in action form to display on the screen. I am using html:select tag and my code looks like this.
<bean
efine id="form" name="SampleForm" type="struts.forms.SampleForm" />
<html:select property="Test" name="form" style="size: 150px;">
<%= form.getFieldValue()%>
</html:select>
My
Struts form contains a variable named fieldValue and the getter and setter methods for it.
When I set the value to the form variable fieldValue in the struts Action class to something like <html
ption value="Tester">
TEST Data</html
ption> , I am not able to see the value in the select dropdown in the screen. Can anyone please tell me how I can create a html options code in struts action, store it in the action form and then use it in the screen. I appreciate your help.
Thanks,
Pavan.