That was it exactly. Thx. Now I have another question. My box is a multi select. If there is a validation error, only the first option will still be selected.
--- Kishore Senji <[EMAIL PROTECTED]> wrote: > On Fri, 28 Jan 2005 16:53:16 -0800 (PST), Norris Shelton > <[EMAIL PROTECTED]> wrote: > > Here is what I have in the JSP tag file: > > <jxp:state> > > <html:select name="${formName}" property="state" size="4" > > multiple="true"> > > <html:options collection="${state}" property="stateCD" > > labelProperty="description" /> > > collection attribute takes a name which holds the Collection > and not > the collection itself. Assuming that your list is set under > the name > "state", your collection attribute should be > collection="state" and > not collection="${state}" > > > </html:select> > > </jxp:state> > > > > state is a simple tag that makes a List of State objects > > available to the page. I tried setting them as a page scope > > attribute and a request scope attribute. I always get the > > following message: > > > > javax.servlet.jsp.JspException: Cannot find bean under name > > [EMAIL PROTECTED], > > [EMAIL PROTECTED], > > [EMAIL PROTECTED], > > [EMAIL PROTECTED], > > [EMAIL PROTECTED], > > [EMAIL PROTECTED], > > [EMAIL PROTECTED], > > [EMAIL PROTECTED] > > > > ===== > > > > Norris Shelton > > Software Engineer > > Sun Certified Java 1.1 Programmer > > Appriss, Inc. > > ICQ# 26487421 > > AIM NorrisEShelton > > YIM norrisshelton > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Mail - now with 250MB free storage. Learn more. > > http://info.mail.yahoo.com/mail_250 > > > > > --------------------------------------------------------------------- > > 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] > > ===== Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __________________________________ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]