wood burning stoves 2.0*
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


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:select help" Watch "html:select help" New topic
Author

html:select help

Venkat Babu
Ranch Hand

Joined: Jan 12, 2007
Posts: 47
Hello,

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" />

</html:select>

</td>

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

 
GeeCON Prague 2014
 
subject: html:select help