You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rademacher Tobias <To...@grob.de> on 2002/09/27 12:54:49 UTC
[Cust-Taglibs] How to mark a option using html:select?
I'm currently struggling with the fine custom taglibs of struts.
I have question about the selection tag. I'm currently using:
<html:select property="role"
style="margin-left:25%"
>
<html:options collection="roles"
labelProperty="name"
property="name"
/>
</html:select>
Works fine. But anyway I want to get a specfic option marked, how do I do
this?
The following code fails in Catalina 4.0.3
<html:select property="role"
style="margin-left:25%"
value="<bean:write name="user" property="company"/>"
>
<html:options collection="roles"
labelProperty="name"
property="name"
/>
</html:select>
What did I wrong? Assing fix string to value attrib works fine. But not a
dynamically assinged value?
How can I achive that?
Thx for any help.
Bye
Toby
PS: What is the difference of html:options and html:optionsCollection? The
docu of the last metioned tag is fairly poor.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>