Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML validation with struts tags

 
Gezza Hall
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys.

I'm trying to get my HTML to validate to HTML standards, but my form elements are failing.

Example:
The following line in my code:


translates to:



This doesn't validate, as there is no closing slash, ie

Any suggestions please?
 
Franck Tranchant
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Try this :
Using this tag in a page tells all other html taglib tags to render themselves as XHTML 1.0.
As a result, the closing brace will be added when closing elements.
[ March 16, 2005: Message edited by: Franck Tranchant ]
 
Craig Jackson
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe the html struts tag has adhered to the HTML standards. The end tag for input element is not required, in fact I believe it is "forbidden".

Input Element

I am not sure if this is what you are asking. So I hope it helps.
 
Gezza Hall
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Excellent, thanks guys.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic