You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Tai Nguyen <tn...@edocs.com> on 2003/04/11 15:53:47 UTC

RE: How to populate a form with the value that should be selected ?

There are many resources out there showing how to do simple things like
this.  Try http://jakarta.apache.org/struts/userGuide/struts-html.html or
search the archives.  Please put in a little effort to solve things yourself
before you ask the list.

-----Original Message-----
From: Reda Mokrane [mailto:gabrielreda@yahoo.ca]
Sent: Thursday, April 10, 2003 11:01 PM
To: struts-user@jakarta.apache.org
Subject: How to populate a form with the value that should be selected?



Hi!!!

I have a form with a <html:select><html:options> tag's

How can I populate the form with the value that should be selected?

Thank's

Reda Mokrane



---------------------------------
Post your free ad now! Yahoo! Canada Personals

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


RE: How to populate a form with the value that should be selected?

Posted by apachep2 <ap...@hotmail.com>.
Try to be nice. Today is Friday, right.

To populate this form, create an action form with a String field
"selected" and a collection of LabelValueBeans called "lvbs"; then

<html:select property="selected">
	<html:optionsCollection property="lvbs"/>
</html:select>



-----Original Message-----
From: Tai Nguyen [mailto:tnguyen@edocs.com] 
Sent: April 11, 2003 9:54 AM
To: 'Struts Users Mailing List'
Subject: RE: How to populate a form with the value that should be
selected?

There are many resources out there showing how to do simple things like
this.  Try http://jakarta.apache.org/struts/userGuide/struts-html.html
or
search the archives.  Please put in a little effort to solve things
yourself
before you ask the list.

-----Original Message-----
From: Reda Mokrane [mailto:gabrielreda@yahoo.ca]
Sent: Thursday, April 10, 2003 11:01 PM
To: struts-user@jakarta.apache.org
Subject: How to populate a form with the value that should be selected?



Hi!!!

I have a form with a <html:select><html:options> tag's

How can I populate the form with the value that should be selected?

Thank's

Reda Mokrane



---------------------------------
Post your free ad now! Yahoo! Canada Personals

---------------------------------------------------------------------
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