The stuffs I get is like you want multiple combobox
If it is so then u can codce like

<%String str="des"+count;%>
<html:select property="<%=str%>">
<html:option value="1">Trainee<html:option>
<html:option value="2">S/W engg<html:option>
<html:option value="3">Manager<html:option>
<html:option value="4">Director<html:option>
</html:select>

Now here if value of str is 3 then manager will be auto selected...

-----Original Message-----
From: Gareth Evans [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 31, 2006 7:44 PM
To: Struts Users Mailing List
Subject: Re: Proper Struts Tags

Try,

<html:select name="employeeHashMap" property="<%= "string(designation" +
count + ")" %> ">

That should write the correct property name

Gareth

Thomas Joseph wrote:
> Basically, when we use the <html:select , we assume that when
rendering,  if the value of the select matches one of the options, then
that value would be pre-selected in the select dropdown.
> 
> But with your solution applied, I could get the html:select rendered, 
> but not have the pre-selection
> 
> Hope this would be clear
> 
> Thanks
> 
> Thomas Joseph
> ----- Original Message -----
> 
>   From: Patil, Sheetal 
>   To: Struts Users Mailing List 
>   Sent: Monday, July 31, 2006 7:03 PM
>   Subject: RE: Proper Struts Tags
> 
> 
>   I wont get what u want to get?
>   Can u clear it 
>   -----Original Message-----
>   From: Thomas Joseph [mailto:[EMAIL PROTECTED] 
>   Sent: Monday, July 31, 2006 7:05 PM
>   To: Struts Users Mailing List
>   Subject: Re: Proper Struts Tags
> 
>   Thanks Sheetal, but I could not get the values autoselected for the
>   select
> 
>     ----- Original Message -----
>     From: Patil, Sheetal
> 
>     I also suffered from this problem so I write code like
> 
>     <%String str="designation"+count;%>
>     <html:select name="employeeHashMap" property="<%=str%>">
> 
>     So it wroks fine
> 
>     -----Original Message-----
>     From: Thomas Joseph [mailto:[EMAIL PROTECTED]
> 
>     Hi All,
> 
>     I am using indexed properties for form beans and want something
like:
>     <% int count = 0; %>
> 
>         <%=employeeHashMap.get("name"+count)%> 
>         <html:select name="employeeHashMap"
>     property="string(designation+<%=count%>"+)>
> 
>     in proper struts tags.
> 
>     The select tage, I am getting when rendered as <select
>     name="string(designation<%=count%>)">
> 
>     instead of
> 
>     <select name="string(designation0)">, <select
>     name="string(designation1)">, <select name="string(designation2)">
> 
>     how can I get them right. Any help is appreciated.
> 
>   Thanks and Regards,
>   Thomas Joseph
> 
>   Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road |
Cochin-682015
>   | India www.kottsoftware.com
>
------------------------------------------------------------------------
>   --------
>   This email (including any attachments) is subject to copyright, the
>   information in it is confidential, and it is legally privileged. Use
of
>   this email or of any information in it other than by the addressee
is
>   unauthorized and unlawful. If you are not the intended recipient of
the
>   mail, kindly intimate the author of the mail and delete the same. 
>   
> ----------------------------------------------------------------------
> --
> 
> 

--
Gareth Evans

Software Developer

MSoft eSolutions Limited
Technology Centre
Inward Way
Rossmore Business Park
Ellesmere Port
Cheshire
CH65 3EN

-- 
Tel:    +44 (0)870 0100 704
Fax:    +44 (0)870 9010 705
E-Mail: [EMAIL PROTECTED]
Web:    www.msoft.co.uk

----------------------------------------------
Terms:
Please note that any prices quoted within this e-mail are subject to
VAT.
All program details and code described in this e-mail are subject to
copyright (c) of MSoft eSolutions Limited and remain the intellectual
property of MSoft eSolutions Limited.
Any proposal or pricing information contained within this e-mail are
subject to MSoft eSolutions' Terms and Conditions
----------------------------------------------
Disclaimer:
This message is intended only for use of the addressee. If this message
was sent to you in error, please notify the sender and delete this
message. MSoft eSolutions Limited cannot accept responsibility for
viruses, so please scan attachments. Views expressed in this message do
not necessarily reflect those of MSoft eSolutions Limited who will not
necessarily be bound by its contents.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to