RE: html:options selected

2006-11-15 Thread Thor Kristensen
Hi Søren,









Should work, note the added:
  value="c_stand"
in the 

For additional info, see: 
http://struts.apache.org/1.x/struts-taglib/tlddoc/html/select.html
Or for 2.x:
http://struts.apache.org/WW/select.html


Regards
  Thor
 

> -Original Message-
> From: Søren Blidorf [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, November 15, 2006 12:24 PM
> To: 'Struts Users Mailing List'
> Subject: SV: html:options selected
> 
> Hi Mano.
> 
> Thanks for your help
> 
> Could you explain it again.
> 
> I am not sure I understand...
> 
> C_stand already has the value of "test2", and still it is not 
> selected.
> 
> -Oprindelig meddelelse-
> Fra: Mano Chinthaka Dasanayaka [mailto:[EMAIL PROTECTED]
> Sendt: 15. november 2006 12:18
> Til: 'Struts Users Mailing List'
> Emne: RE: html:options selected
> 
> Yes u can...just set the value of   c_stand to value "test2" in action
> class.. where u load this page...then it shud work..
> 
> 
> Regards,
> Mano
> 
> -Original Message-
> From: Søren Blidorf [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 15, 2006 4:27 PM
> To: Struts Users Mailing List
> Subject: html:options selected
> 
> Hi.
> 
> I am trying to get html:select to work for my purpose.
> 
> Can anybody help me..
> 
> c_stand is a String value from PeopleBean in 
> request.getAttribute("people"); cs is a collection containing 
> values in OptionValueBean.
> 
> If cs contains values test1, test2 and test3 and c_stand 
> contains test2 I want test2 to be selected in the html:select
> 
> Is that possible?
> 
>   name="element" id="c_stand" property="c_stand" />
> 
> 
>  labelProperty="option"/> 
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: html:options selected

2006-11-15 Thread Saeed, Rada
You can do it like this :

   


 

Where cs is your list of values.
The above will make the "test2" as the first option in the list, which is 
selected by default.

-Original Message-
From: Søren Blidorf [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 15, 2006 12:57 PM
To: Struts Users Mailing List
Subject: html:options selected

Hi.

I am trying to get html:select to work for my purpose.

Can anybody help me..

c_stand is a String value from PeopleBean in request.getAttribute("people"); cs 
is a collection containing values in OptionValueBean.

If cs contains values test1, test2 and test3 and c_stand contains test2 I want 
test2 to be selected in the html:select

Is that possible?

 


 




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



SV: html:options selected

2006-11-15 Thread Søren Blidorf
Hi Mano.

Thanks for your help

Could you explain it again.

I am not sure I understand...

C_stand already has the value of "test2", and still it is not selected.

-Oprindelig meddelelse-
Fra: Mano Chinthaka Dasanayaka [mailto:[EMAIL PROTECTED] 
Sendt: 15. november 2006 12:18
Til: 'Struts Users Mailing List'
Emne: RE: html:options selected

Yes u can...just set the value of   c_stand to value "test2" in action
class.. where u load this page...then it shud work..


Regards,
Mano

-Original Message-
From: Søren Blidorf [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 15, 2006 4:27 PM
To: Struts Users Mailing List
Subject: html:options selected

Hi.

I am trying to get html:select to work for my purpose.

Can anybody help me..

c_stand is a String value from PeopleBean in
request.getAttribute("people");
cs is a collection containing values in OptionValueBean.

If cs contains values test1, test2 and test3 and c_stand contains test2
I
want test2 to be selected in the html:select

Is that possible?












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




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



RE: html:options selected

2006-11-15 Thread Mano Chinthaka Dasanayaka
Yes u can...just set the value of   c_stand to value "test2" in action
class.. where u load this page...then it shud work..


Regards,
Mano

-Original Message-
From: Søren Blidorf [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 15, 2006 4:27 PM
To: Struts Users Mailing List
Subject: html:options selected

Hi.

I am trying to get html:select to work for my purpose.

Can anybody help me..

c_stand is a String value from PeopleBean in request.getAttribute("people");
cs is a collection containing values in OptionValueBean.

If cs contains values test1, test2 and test3 and c_stand contains test2 I
want test2 to be selected in the html:select

Is that possible?












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



html:options selected

2006-11-15 Thread Søren Blidorf
Hi.

I am trying to get html:select to work for my purpose.

Can anybody help me..

c_stand is a String value from PeopleBean in request.getAttribute("people");
cs is a collection containing values in OptionValueBean.

If cs contains values test1, test2 and test3 and c_stand contains test2 I want 
test2 to be selected in the html:select

Is that possible?