Back
View JSP Source
This HTML Source
Page Validation

Customize JTidy reports using <jtidy:report> tag

View original HTML | View result HTML after JTidy

JSP Code: <jtidy:report requestID="93"/> will generate:

JTidy Messages for request:93 processed in 3 milliseconds
Validation Errors 0
Validation Warnings 2
Line 37, column 6 WARNING: <a> escaping malformed URI reference
Line 48, column 5 WARNING: <table> lacks "summary" attribute

Below is the source used for this validation:
   1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"
    >
   2 <html>
   3     <title>Pain text HTML</title>
   4     <meta http-equiv="Expires" content="-1">
   5     <meta http-equiv="Pragma" content="no-cache">
   6     <meta http-equiv="Cache-Control" content="no-cache">
   7     <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
   8     <meta name="author" content="Vlad Skarzhevskyy">
   9     <meta name="email" content="vlads(at)users.sourceforge.net">
  10     <link rel="stylesheet" href="./styles/examples.css" type="text/css" media="all">
    
  11     <style type="text/css" media="all">
  12           @import url("./styles/maven-base.css");
  13           @import url("./styles/maven-theme.css");</style>
  14 <body>
  15
  16 <div id="banner">
  17     <a href="http://sourceforge.net" id="organizationLogo">
  18         <img alt="sourceforge" src="http://sourceforge.net/sflogo.php?group_id=13153&amp;type=2"
    ></a>
  19     <a href="http://jtidy.sourceforge.net" id="projectLogo">
  20         <img alt="JTidy Servlet" src="./images/logo.png"></a>
  21     <div class="clear"><hr></div>
  22 </div>
  23
  24 <div id="breadcrumbs">
  25     <div class="xleft">
  26         JTidy servlet extension - Live examples
  27         <span class="separator">|</span>
  28         <a href="index.jsp">Examples Home</a>
  29         <span class="separator">|</span>
  30         <a href="http://jtidy.homelinux.net/" class="externalLink">Documentation</a>
    
  31     </div>
  32     <div class="clear"><hr></div>
  33 </div>
  34
  35 <div id="showsourceDiv">
  36     <a href="example-tidy-html.html.source">View Source</a><br>
  37     <a href="./JTidy?action=report&amp;result=1&amp;requestID=<!--jtidy:requestID-->
    ">This HTML Source</a>
  38 </div>
  39
  40 <div id="body">
  41
  42     <h2>Pain text HTML processed by JTidy Filter</h2>
  43
  44     <p>
  45         This HTML is clean up by JTidy Filter.
  46     </p>
  47
  48     <table>
  49         <tr>
  50             <td>
  51                 This text is inside not well formated table
  52         </tr>
  53     </table>
  54
  55     <p>
  56         request ID=<!--jtidy:requestID-->. Validation icon <!--jtidy:validationImage-->
    
  57     </p>
  58
  59
  60     Special string values:<br>
  61     <ul>
  62         <li><code>&lt;!--jtidy:requestID--&gt;</code> replaced in HTML by JTidy request ID</li>
    
  63         <li><code>&lt;!--jtidy:validationImage--&gt;</code> replaced by validation icon</li>
    
  64     </ul>
  65
  66 </div>
  67
  68 <div id="validxhtml">
  69   <a href="http://validator.w3.org/check?uri=referer">
  70   <img border="0"
  71        src="http://www.w3.org/Icons/valid-html401"
  72        alt="Valid HTML 4.01!" height="31" width="88"></a>
  73 </div>
  74
  75 </body>
  76 </html>
EOF

N.B. there are bug in development version of jtidy so the HTML output of this page is not the JTidy output. We used <jtidy:pass/> tag.
Get Firefox!
Valid HTML 4.01!