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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
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 ?