RE: html:select example
Would someone show me a very simple example of the use of an html:select tag? I did not understand its use. I'd appreciate any simple example. html:select property=someProperty html:option value= / html:optionsCollection property=someCollection / /html:select The select tag can contain a list of option tags, or an options or optionsCollection tag or any combination. Here I use 1 option tag to provide a blank default and a optionsCollection tag with a collection of LabelValueBean objects to provide the rest of the list (the fact that the collection contains LabelValueBean objects makes the syntax much simplier as you don't have to specify the label or value properties. The value that matches the value of someProperty will automatically be selected. - Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:select example
I have some examples of Struts tags, including html:select, at http://www.ninsky.com/struts Various other examples are listed at http://struts.sourceforge.net/community/examples.html Steve Sorry if this is a duplicate message, sent the first one from the wrong address :-( -Original Message- From: Otavio Augusto [mailto:[EMAIL PROTECTED] Sent: December 30, 2003 8:41 AM To: [EMAIL PROTECTED] Subject: html:select example Would someone show me a very simple example of the use of an html:select tag? I did not understand its use. I'd appreciate any simple example. Thanks a lot. - 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:select example
some working examples, but I'm not expert ;-) html:select property=previewFontStyle styleClass=inputfield html:option value=0normal/html:option html:option value=1gras/html:option html:option value=2italique/html:option html:option value=3gras-italique/html:option /html:select html:select property=previewFontSize styleClass=inputfield c:forEach items=${partner.commonSize} var=item html-el:option value=${item}c:out value=${item}//html-el:option /c:forEach /html:select For the second one, It seems that there is other way to do the same, using html:options or html:optioncollection, but I've never used it. Good luck Carl Otávio Augusto wrote: Would someone show me a very simple example of the use of an html:select tag? I did not understand its use. I'd appreciate any simple example. Thanks a lot. - 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]