struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jay Patel <jpa...@dexteragroup.com>
Subject RE: Select tag
Date Thu, 30 Aug 2001 15:35:46 GMT
Another way is to have the FormBean populated with the desired value. So
when the select tag is rendered, it will automatically select the value from
the form bean. 


-----Original Message-----
From: SUHAS G. KULKARNI [mailto:suhas_k@ctd.hcltech.com]
Sent: Thursday, August 30, 2001 12:51 AM
To: struts-user@jakarta.apache.org
Subject: RE: Select tag


check this 
I think u have to change the select tag a bit  -
<html:select property="grouptype"  value="theoneUwantTOSelect">


-----Original Message-----
From: s k m [mailto:strut@rediffmail.com]
Sent: Thursday, August 30, 2001 11:14 AM
To: struts-user@jakarta.apache.org
Subject: Select tag


Hi all....

How do I disply a desired value, while populating the select tag?
I'm using the tag like this...

<html:select property="grouptype">
<html:options collection="allgroups" property="key"
                         	labelProperty="value"/>
</html:select>

It is showing me the dropdown box with the values in collection 'grouptype'
but the requirement is to show the specific value while screen is displayed.

Sandeep mahajan

 


Mime
View raw message