How to produce valid HTML output with the html:tags

2006-04-27 Thread Peter Neu
Hello,

in an effort to clean up my site I try to do everything by the W3C standard.

I threw out all design tables and other useless crap but now one problem
remains and it's related to Struts. All html:input tags generate a tag
which is not closed. Like this: 

input type=hidden name=mainGroupSelection value=1 

Because the tag is not closed the w3c validator says it's not valid. What
can I do to make it valid?

Cheers,
Pete





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



Re: How to produce valid HTML output with the html:tags

2006-04-27 Thread Nikolaj Berntsen
Peter Neu wrote:

Hello,

in an effort to clean up my site I try to do everything by the W3C standard.

I threw out all design tables and other useless crap but now one problem
remains and it's related to Struts. All html:input tags generate a tag
which is not closed. Like this: 

input type=hidden name=mainGroupSelection value=1 

Because the tag is not closed the w3c validator says it's not valid. What
can I do to make it valid?
  

I believe the magic word is that you want to produce xhtml? a google for
that leads to this mail from the list:
   
http://mail-archives.apache.org/mod_mbox/struts-user/200403.mbox/[EMAIL 
PROTECTED]

which has the useful (?) snippet:

There are a couple of issues to look out for, such as with tiles, where 
you use the tag you mention. In your main pages, use html:html 
xhtml=true

Cheers,
/\/


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