The Struts doc does suggest that <html:xhtml /> should cause the <form>
tag to be XHTML compliant but for some reason it does not.  The W3C XHTML
validator also does not like the Struts output of the <input> elements. 
Struts does not close them: <input ... />.


--Marty

--- Derek Broughton <[EMAIL PROTECTED]> wrote:

> On Tuesday 14 December 2004 08:51, William Ferguson wrote:
> > I noticed that the html generated form the <html:form> tag is not
> valid
> > HTML according to the W3C validation service
> (http://validator.w3.org). It
> > generates a <form> tag with a 'name' attribute which has been
> deprecated.
> >
> > Since I'm striving to conform to relevant standards as best as
> possible, I
> > was wondering whether anyone else had faced the same issue and what
> > approach had been taken.
> >
> > If I don't use the <html:form> tag then I can't use other tags like
> > <html:select> etc, which means a fair bit of messing about for
> drop-downs.
> >
> > Does anyone else bother with HTML validation?
> > And if so, how do you handle Forms and Form elements?
> 
> Don't you need to use <html:xhtm/l> or <html:html xhtml="true"> to get
> full 
> standards compliance?
> 
> From the Struts Developer guide: "The output is HTML 4.01 compliant or
> XHTML 
> 1.0 when in XHTML mode. "
> -- 
> derek
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to