You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Yaman Kumar <ya...@nous.soft.net> on 2002/03/14 15:33:31 UTC
RE: Preselected option in dropdown
If your select box property is existing in your Action Form bean
and its value matches with any of its option values , struts would
select that item by default.
ex:
<html:select property='myname'>
<html:options collection="mynames" labelProperty="userVisible"
property="hiddenfromuser"/>
</html:select>
and if u have method with name getMyname() ( set method also )in your action
form
and if getMyname() returns a value(X) and if collection(mynames) has X in it
then
X would be selected by default, but user could c only labelproperty of X.
If you are looking for dynamic control generation and dynamic selection for
each row
then struts 1.0.2 do not support.
HTH
yaman
-----Original Message-----
From: Vijay Kumar [mailto:vijay_vkvk@hotmail.com]
Sent: Friday, 14 June 2002 7:10 PM
To: struts-user@jakarta.apache.org
Subject: Preselected option in dropdown
Hi,
Is there any way to show preselected option in dropdown. Its like my
search returns arraylist and i need to show show particular value in drop
down.
Thanks in advance
Cheers
vkvk
_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>