You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vikash Manoranjan <vi...@infotechsw.com> on 2007/07/05 10:49:24 UTC
sample code needed
Hi,
I need sample code for
<html:options> with <html:select>
please help me....
Thanks and Regards,
Vikash Manoranjan
RE: sample code needed
Posted by Vikash Manoranjan <vi...@infotechsw.com>.
Hi anja,
Its working........
But please tell me one more thing. Now I want to select one of the item from
the list dynamically.......
How can I do that??
Thanks and Regards,
Vikash Manoranjan
-----Original Message-----
From: Anja Fischer, IBE [mailto:anja.fischer@ibe.med.uni-muenchen.de]
Sent: 05 July 2007 15:28
To: 'Struts Users Mailing List'
Subject: AW: sample code needed
Hi,
hope, it helps :-)
<html:select name="new_user_form" property="city_I">
<logic:iterate id="element" property="city_hashmap"
name="new_user_form">
<bean:define id="city_id">
<bean:write name="element" property="key" />
</bean:define>
<bean:define id="city_name">
<bean:write name="element" property="value" />
</bean:define>
<html:option value="<%=city_id%>">
<bean:write name="city_name" />
</html:option>
</logic:iterate>
</html:select>
Many regards,
Anja
----------------------------------------------
Dipl.-Inform. Anja Fischer
Universität Muenchen
IBE - Institut für medizinische
Informationsverarbeitung,
Biometrie und Epidemiologie
Marchioninistr. 15, D-81377 Muenchen
http://ibe.web.med.uni-muenchen.de
mailto:anja.fischer@ibe.med.uni-muenchen.de
Tel: +49 89 7095-4484
----------------------------------------------
-----Ursprüngliche Nachricht-----
Von: Vikash Manoranjan [mailto:vikasmanoranjan@infotechsw.com]
Gesendet: Donnerstag, 5. Juli 2007 10:49
An: 'Struts Users Mailing List'
Betreff: sample code needed
Hi,
I need sample code for
<html:options> with <html:select>
please help me....
Thanks and Regards,
Vikash Manoranjan
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
AW: sample code needed
Posted by "Anja Fischer, IBE" <an...@ibe.med.uni-muenchen.de>.
Hi,
hope, it helps :-)
<html:select name="new_user_form" property="city_I">
<logic:iterate id="element" property="city_hashmap"
name="new_user_form">
<bean:define id="city_id">
<bean:write name="element" property="key" />
</bean:define>
<bean:define id="city_name">
<bean:write name="element" property="value" />
</bean:define>
<html:option value="<%=city_id%>">
<bean:write name="city_name" />
</html:option>
</logic:iterate>
</html:select>
Many regards,
Anja
----------------------------------------------
Dipl.-Inform. Anja Fischer
Universität Muenchen
IBE - Institut für medizinische
Informationsverarbeitung,
Biometrie und Epidemiologie
Marchioninistr. 15, D-81377 Muenchen
http://ibe.web.med.uni-muenchen.de
mailto:anja.fischer@ibe.med.uni-muenchen.de
Tel: +49 89 7095-4484
----------------------------------------------
-----Ursprüngliche Nachricht-----
Von: Vikash Manoranjan [mailto:vikasmanoranjan@infotechsw.com]
Gesendet: Donnerstag, 5. Juli 2007 10:49
An: 'Struts Users Mailing List'
Betreff: sample code needed
Hi,
I need sample code for
<html:options> with <html:select>
please help me....
Thanks and Regards,
Vikash Manoranjan
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org