Are you asking how to make the default selection of an <html:select> the first option? As you have pointed out you can set the property attribute of the <html:select> equal the value of the first option.
Alternatively, *I think* if you leave the property blank, HTML rules indicate that the first item be shown. Note that in the case of a <html:select> with multiple selections, this *may not* result in any item being selected; in this case your only choice to set the property attribute of the <html:select>. Sorry if I completely misunderstood your question. Sri -----Original Message----- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:22 PM To: Struts Users Mailing List Subject: Searching the Archive I was searching the Struts Archive and got the following error: javax.servlet.ServletException: Error initializing Velocity: java.lang.ArrayIndexOutOfBoundsException at org.apache.velocity.servlet.VelocityServlet.initVelocity(VelocityServlet.jav a:236) I was trying to locate some help in <html:select. I only want to select the first element - It seems like I need an object with a property that will be used to match the property used in the <options tag. This seems like a bunch of work to simply select the first element of the options list. Thanks Ray Madigan --------------------------------------------------------------------- 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]