aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Validate HTML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Validate HTML" Watch "Validate HTML" New topic
Author

Validate HTML

Thomas Greene
Ranch Hand

Joined: Aug 09, 2004
Posts: 125
I can validate my HTML files using

http://validator.w3.org/

but how to validate the html in jsp files.

thanks
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Run the jsp file once, and copy/paste the resulting html code.
(there may be something cleaner)


[My Blog]
All roads lead to JavaRanch
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

I doubt there is any solution other then validating the output of the JSP. The question is the same as "I can spell-check a text file, how do I spell-check a Java program that is writing out a text file?"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validate HTML