A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Struts Input Types and Validation with W3C
Joined: Jan 04, 2005
Jan 30, 2006 04:19:00
Hello. I'm validating the output of my pages against the W3C validator at
It has brought to my attention that any
input type tags, such as html:text, do not place a closing tag on the html:
<input type="text" name="emailAddress" value="...">
...which obviously fails the validation.
This must be a common problem - what is the workaround for this please?
Joined: Feb 15, 2005
Jan 30, 2006 07:18:00
in HTML, having an <input> tag without an </input> tag is acceptable. You just have to tell the validator which version of HTML you're using.
For example, put the following as the first line of your page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
and I expect the validator will accept the page.
I agree. Here's the link:
subject: Struts Input Types and Validation with W3C
An empty Page is displayed at start
Search HTML 4.1 Transcoding Parser
Need XHTML validator.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014