Meaningless Drivel is fun!*
The moose likes Struts and the fly likes html:select help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:select help" Watch "html:select help" New topic

html:select help

Venkat Babu
Ranch Hand

Joined: Jan 12, 2007
Posts: 47

Please help.

I have drop down in the jsp and i am not seeing the values in the drop box but I am able to print the values using bean:write,

here's the code:

// this line prints the value
<bean:write name="form" property="action1"/>

//The following lines using struts tag libs does not show the selected value in the drop down, shows only the default values in the list
<td >

<html:select name="form" property="action1" disabled="true">

<htmlptionsCollection name="form" property="actionList" label="label" value="value" />



Please let me know if I am doing anything wrong. Thanks.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: html:select help
Similar Threads
Ajax with Struts - Loading the lookup values in drop down
LabelValueBean in struts
logic:iterate not populating the values on submit
bean:write tag - query
how to make html:optionsCollection selected inside logic:iterate ?