struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lcl" <...@gnireel.com>
Subject html:options can not automatically match value
Date Wed, 04 Jun 2003 09:33:02 GMT
Hi all ,

I have using the following code to express a select control in html using
strtus tag:

<html:select property="projclieid">
  <html:options collection="com.nsk.gs.sales.ClientInfo"
labelProperty="cliename"
    property="clieid" />
</html:select>

When this jsp page is running, all is ok, but the options will not match
what the "projclieid" is. in the dropdown list, there is one item match the
value,but it is not mark as "selected", what's wrong?

And if I manually specific the value,such as <html:select
property="projclieid" value="aa">,
 it will work fine, it will more surprise me...

Please help me, thank you very much.
lcl




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message