You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mallik <ma...@yahoo.com> on 2006/11/20 08:19:42 UTC
help?
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: help?
Posted by Mallik <ma...@yahoo.com>.
Hi friend
thankyou
i got it
thankyou very much
ur's
Mallik
chamalsl wrote:
>
> 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 <ma...@yahoo.com> 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:
>> user-unsubscribe@struts.apache.org
>> For additional commands, e-mail:
>> user-help@struts.apache.org
>>
>>
>
>
>
>
> ____________________________________________________________________________________
> Sponsored Link
>
> Mortgage rates near 39yr lows.
> $510k for $1,698/mo. Calculate new payment!
> www.LowerMyBills.com/lre
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/%3Chtml%3Aoptions--%3E-help--tf2667275.html#a7466026
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: help?
Posted by chamal desilva <ch...@yahoo.com>.
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 <ma...@yahoo.com> 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:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
>
>
____________________________________________________________________________________
Sponsored Link
Mortgage rates near 39yr lows.
$510k for $1,698/mo. Calculate new payment!
www.LowerMyBills.com/lre
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org