struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jay Patel <>
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-----
Sent: Thursday, August 30, 2001 12:51 AM
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 []
Sent: Thursday, August 30, 2001 11:14 AM
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"

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


View raw message