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

NameDescriptionType
bypassBypass validation. Can be used to quickly enable/disable validation. Has the same effect as ignore tag before tidyboolean
configJTidy configuration options separated by semicolonString
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

NameDescriptionType
imgNameName of img element in html, By default JTidyValidationImageString
onclickJavaScript onclick event codeString
requestIDRequestID. By default use current requestString
srcOnlyValid values are true or false. Just generate URI for image. By default, falseboolean

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

NameDescriptionType
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
requestIDRequestID. By default 'this' use current requestString
resultValid values are true or false. Print result HTML source. By default, falseboolean
sourceValid values are true or false. Print original HTML source. By default, trueboolean
textIf href is false then the text of the generate A tagString

report

Access the Tidy Processing Report for given request

Can contain:

Attributes

NameDescriptionType
requestIDRequestID. By default use last request in repositoryString
resultValid values are true or false. Print result HTML source. By default, falseboolean
sourceValid values are true or false. Print original HTML source. By default, trueboolean
wrapLenMax string lenght. By default 100int
wrapSource Valid values are true or false. Wrap long lines when printing original HTML source. By default, true boolean