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. 
  ------------------------------------------------------------------------

Reply via email to