Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:select help

 
Venkat Babu
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic