Hi,

U can do like this,

<html:select name="division" property="teamRef" >

<html:optionsCollection name="division"
property="allTeams" value="teamRef" label="teamName"/>

</html:select>

Division is a form bean.
allTeams is the vector which contains the objects.
Vector contains team objects which has teamRef and
teamName properties.

division form bean also contains a property for
teamRef.
"<html:select name="division" property="teamRef" >"

So when this teamRef is equal to teamRef of one of the
team objects in vector it will be selected.

Chamal.




--- Mallik <[EMAIL PROTECTED]> wrote:

> 
> Hi friends 
> this is a modifying details page.
> i have a select box,that will populate with
> databases values. i used
> <html:options collection="" property=""
> labelProperty=""/>. till now
> everything ok.
> but one of these options should select automatically
> when the page displayed
> that value is in formBean. 
> how can i do this help pease........
> 
> ur's
> Mallik
> -- 
> View this message in context:
>
http://www.nabble.com/%3Chtml%3Aoptions--%3E-help--tf2667275.html#a7438109
> Sent from the Struts - User mailing list archive at
> Nabble.com.
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



 
____________________________________________________________________________________
Sponsored Link

Mortgage rates near 39yr lows. 
$510k for $1,698/mo. Calculate new payment! 
www.LowerMyBills.com/lre

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to