See the <html:xhtml/> and <html:html xhtml="true"/> tags to do this

http://struts.apache.org/userGuide/struts-html.html#xhtml
http://struts.apache.org/userGuide/struts-html.html#html

Niall

----- Original Message ----- 
From: "Aladin Alaily" <[EMAIL PROTECTED]>
Sent: Tuesday, May 24, 2005 4:12 PM


> Hello,
>
> Has anyone tried to make the struts tags xhtml compliant?  Here is what I
> mean.
>
> I have noticed that whenever an html component is generated using the html
> tags (or any other tag from the libraries), they are usually not closed.
>
> For example, when generating a form input field using:
> <html:text property="whatever">
>
> the html code generated looks like:
> <input type="text" name="whatever" value="">
>
> when it should really look like this:
> <input type="text" name="whatever" value="" /> (Notice the / to close the
> tag)
>
> This is a problem when you want to enforce a specific DOCTYPE to your
> web-application. The problem can easily be fixed... are struts developers
> thinking about this problem?  It would be nice to have this addition to
> Struts 1.7
>
> Aladin



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to