Try adding filter="false" on your <html:options ... /> tag. The docs explain it this way:
Filter Set to false if you do NOT want the option labels filtered for sensitive characters in HTML. By default, such values are filtered. [RT Expr] Regards, David -----Original Message----- From: Charl Gerber [mailto:[EMAIL PROTECTED] Sent: Friday, December 24, 2004 8:26 AM To: user@struts.apache.org Subject: Problem with struts form select and html escape codes Hi, I want to format options in a select (using <html:select> and <html:options>). It should look like: <pre> Select me I am 1 No, select me! I am 2 </pre> (Ie, there are spaces in the options that should remain). This of course appears as two options in the select. I have made up the text with <pre> </pre>; characters, but it then displays as exactly that. Looking in the generated html, I see : &nbsp; which is not what I want. It seems that struts does a parsing and replaces characters with the escape codes, but not for spaces. How can I format my select with struts html tags to keep the spaces intact? Thanks Charl --------------------------------------------------------------------- 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]