jtidy *: Tag Library
A tab library for the JTidy HTML syntax checker and pretty printer This is version 1.0 .
-
ignore
Do not change this Responce, Do not perform validation, Do not store this responce in Repository .
-
link
Link or href to access the Tidy Processing Report via TidyServlet for given request, create href to report
.
-
pass Do not change this Responce, Perform only validation .
-
report Access the Tidy Processing Report for given request .
-
requestID RequestID (number) used by Tidy to identify this page .
-
tidy Tidy JSP printer .
-
validationImage Tidy Validation Image, Error Warning indicator .
Required attributes are marked with a * .
tidy
Tidy JSP printer. You should use this to encapulate the full context of your page.
Can contain: JSP
Example
<jtidy:tidy config="indent: auto; indent-spaces: 2">
<html>
<head>
<title>My Page</title>
</head>
<body>
</body>
My page body
</html>
</jtidy:tidy>
Attributes
Name | Description | Type |
---|
bypass | Bypass validation. Can be used to quickly enable/disable validation. Has the same effect as ignore tag before tidy | boolean |
config | JTidy configuration options separated by semicolon | String |
validateOnly |
Valid values are true or false. Disable Formated HTML output and only produce the report. By default,
false
| boolean |
validationImage
Tidy Validation Image, Error Warning indicator.
Can contain:
Attributes
Name | Description | Type |
---|
imgName | Name of img element in html, By default JTidyValidationImage | String |
onclick | JavaScript onclick event code | String |
requestID | RequestID. By default use current request | String |
srcOnly | Valid values are true or false. Just generate URI for image. By default, false | boolean |
requestID
RequestID (number) used by Tidy to identify this page
Can contain:
Attributes
This tag has no attributes. |
pass
Do not change this Responce, Perform only validation
Can contain:
Attributes
This tag has no attributes. |
ignore
Do not change this Responce, Do not perform validation, Do not store this responce in Repository. This affects filter and tidy tag.
Could be before (same as bypass attribute) or inside tidy tag.
Can contain:
Attributes
This tag has no attributes. |
link
Link or href to access the Tidy Processing Report via TidyServlet for given request, create href to report
Can contain:
Attributes
Name | Description | Type |
---|
href |
Valid values are true or false. Create valid only href to reports. By default, false
| boolean |
report |
Valid values are true or false. Create valid link to report page. By default, false
| boolean |
requestID | RequestID. By default 'this' use current request | String |
result | Valid values are true or false. Print result HTML source. By default, false | boolean |
source | Valid values are true or false. Print original HTML source. By default, true | boolean |
text | If href is false then the text of the generate A tag | String |
report
Access the Tidy Processing Report for given request
Can contain:
Attributes
Name | Description | Type |
---|
requestID | RequestID. By default use last request in repository | String |
result | Valid values are true or false. Print result HTML source. By default, false | boolean |
source | Valid values are true or false. Print original HTML source. By default, true | boolean |
wrapLen | Max string lenght. By default 100 | int |
wrapSource |
Valid values are true or false. Wrap long lines when printing original HTML source. By default, true
| boolean |