Am surprised why drop down box is not loading in my jsp, what am i missing?

Please reply. Your reply will be appreciated.

<logic:iterate id="Data" name="symptomdata" type="java.util.Map.Entry" indexId="countid">

<html:option value="<bean:write name="Data" property="value">"><bean:write name="Data" property="value"/></html:option></logic:iterate>

Above code gives me this error, equal symbol expected' . I dont know what am I missing. Its giving error for<html:option value="<bean:write name="Data" property="value">">.

While <bean:write name="Data" property="value"/> is working perfectly fine and displaying data in drop box, it is just not assigning value to the entry in combobox because of error.

[726 byte] By [Mokshaa] at [2007-11-26 22:18:45]
# 1
The trick here is on using html:options or html:optionsCollectioncheckout the links below to findout the solution. http://www.servlets.com/archive/servlet/ReadMsg?msgId=115453&listName=struts-user http://masterdev.dyndns.dk/dev/1.htm
RahulSharnaa at 2007-7-10 11:13:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

HI

try this alternative ..

<logic:iterate id="Data" name="symptomdata" type="java.util.Map.Entry" indexId="countid">

<html:option value='<bean:write name="Data" property="value">'><bean:write name="Data" property="value"/></html:option></logic:iterate>

instead of double quotes, try using single quote around your bean tag.

maduri.srinivasa at 2007-7-10 11:13:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
thanks for reply.Writing<html:option value="<%=(String)Data.getValue()%>">, worked for me as Data is hashmap.Thanks again.
Mokshaa at 2007-7-10 11:13:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
thanks for reply.Writing<html:option value="<%=(String)Data.getValue()%>">, worked for me as Data is hashmap.Thanks again.
Mokshaa at 2007-7-10 11:13:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...