wood burning stoves*
The moose likes Struts and the fly likes html:options tag help ASAP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:options tag help ASAP" Watch "html:options tag help ASAP" New topic

html:options tag help ASAP

ashish kulkarni
Ranch Hand

Joined: Aug 15, 2002
Posts: 130
I get a result set from a query which has id and description, now I have to show the it in select tag some thing like this,
select name="option"
option value="id1"desc1/option
option value="id2"desc2/option
I think that i can use html ptions tag which will do my work, but i m not sure how to use it,
how do to define the bean, and also how to set the properties, does anyone have sample code of the bean and the tag for that bean, it will help me alot..

It is sorta covered in the JavaRanch Style Guide.
subject: html:options tag help ASAP
Similar Threads
Selecting option in second selectOneMenu not setting property value
select another dropdown based on a selection from first dropdown using <html:select> struts tag
skip value in logic: iterate
class compilation error
problem with OPTION tag