Can anyone see anything wrong with the following select and option tags? I cannot fathom out why I keep getting an exception thrown in the BodyContent.clearBody method.
This does not work: <html:select property="location"> <html:option value="Select One">Select One</html:option> <html:option value="Auckland">Auckland</html:option> <html:option value="Christchurch">Christchurch</html:option> <html:option value="Dunedin">Dunedin</html:option> <html:option value="Gisborne">Gisborne</html:option> <html:option value="Hamilton">Hamilton</html:option> <html:option value="Hastings">Hastings</html:option> <html:option value="Invercargill">Invercargill</html:option> <html:option value="Napier">Napier</html:option> <html:option value="Nelson">Nelson</html:option> <html:option value="New Plymouth">New Plymouth</html:option> <html:option value="Palmerston North">Palmerston North</html:option> <html:option value="Rotorua">Rotorua</html:option> <html:option value="Tauranga">Tauranga</html:option> <html:option value="Wanganui">Wanganui</html:option> <html:option value="Wellington">Wellington</html:option> <html:option value="Whangarei">Whangarei</html:option> <html:option value="Other">Other</html:option></html:select> The only way I can get the page to work at runtime with the select tag included is to do the following:
<html:select property="location"></html:select> Even a single white space in the body causes the page to fail, e.g. <html:select property="location"> </html:select>
Any help would be most appreciated!
Hi Jonathan
I copied and pasted your non-working example into my JSP, and added a 'location' property to my form bean (which I defaulted to "Christchurch" in struts-config.xml) and it worked a treat. No exceptions.
I'm using vanilla Struts 1.1 and JBoss 3.2.3 + Tomcat 4.
Regards, -- bOOyah
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]