You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Caroline Holanda <sp...@yahoo.com> on 2003/05/22 16:10:49 UTC

Getting Selected Itens in a multiple select

 Hi List!
  
  How can I show the user selected itens in a multiple
select field after validating the form and go back to
the page? 

 Please, image that the collection is session scoped,
how are the itens of the list shown when the page gets
back to, I mean, which will itens be shown as
selected?

 Thanks for any help!
 Caroline 

=====
******************************
Cuide das pessoas que vc ama! 
Elas são presentes de Deus!

_______________________________________________________________________
Yahoo! Mail
O melhor e-mail gratuito da internet: 6MB de espaço, antivírus, acesso POP3, filtro contra spam. 
http://br.mail.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Getting Selected Itens in a multiple select

Posted by Robert Taylor <rt...@mulework.com>.
If the items the user selected populated the form
and validation fails, then if you have your struts-config
file correct, you should be forwarded back to the page from
which the user input the data. Since the request is forwarded,
and the form is in the request, then the <html:select .../> tag
should "see" the selections and highlight the items appropriately.

robert

-----Original Message-----
From: Caroline Holanda [mailto:spencercaroline@yahoo.com]
Sent: Thursday, May 22, 2003 10:11 AM
To: 'Struts Users Mailing List'
Subject: Getting Selected Itens in a multiple select


 Hi List!

  How can I show the user selected itens in a multiple
select field after validating the form and go back to
the page?

 Please, image that the collection is session scoped,
how are the itens of the list shown when the page gets
back to, I mean, which will itens be shown as
selected?

 Thanks for any help!
 Caroline

=====
******************************
Cuide das pessoas que vc ama!
Elas são presentes de Deus!

_______________________________________________________________________
Yahoo! Mail
O melhor e-mail gratuito da internet: 6MB de espaço, antivírus, acesso POP3,
filtro contra spam.
http://br.mail.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Getting Selected Itens in a multiple select

Posted by Robert Taylor <rt...@mulework.com>.
If the items the user selected populated the form
and validation fails, then if you have your struts-config
file correct, you should be forwarded back to the page from
which the user input the data. Since the request is forwarded,
and the form is in the request, then the <html:select .../> tag
should "see" the selections and highlight the items appropriately.

robert

-----Original Message-----
From: Caroline Holanda [mailto:spencercaroline@yahoo.com]
Sent: Thursday, May 22, 2003 10:11 AM
To: 'Struts Users Mailing List'
Subject: Getting Selected Itens in a multiple select


 Hi List!

  How can I show the user selected itens in a multiple
select field after validating the form and go back to
the page?

 Please, image that the collection is session scoped,
how are the itens of the list shown when the page gets
back to, I mean, which will itens be shown as
selected?

 Thanks for any help!
 Caroline

=====
******************************
Cuide das pessoas que vc ama!
Elas são presentes de Deus!

_______________________________________________________________________
Yahoo! Mail
O melhor e-mail gratuito da internet: 6MB de espaço, antivírus, acesso POP3,
filtro contra spam.
http://br.mail.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org