-----Original Message-----
> OK
>
> I looked into what JTidy delivers. Unfortunately it is not what we
want
> :(
>
> The current jtidyServletFilter just VALIDATES the html and includes a
> validation-icon into the html-code delivered.The PrettyPrint feature
is
> only
> available in the full-featured jtidy.


I can't belive, and so i checked again. The filter can be configured to
do PrettyPrint. and it works!

just put
  jtidy-r8-SNAPSHOT.jar and jtidyservlet-r8-SNAPSHOT.jar
into WEB-INF/lib

and add

  <filter>
    <description>Filter for JSP</description>
    <filter-name>JTidyFilter</filter-name>
    <filter-class>org.w3c.tidy.servlet.filter.JTidyFilter</filter-class>
    <init-param>
      <param-name>tee</param-name>
      <param-value>false</param-value>
    </init-param>
  </filter>
  <filter-mapping>
    <filter-name>JTidyFilter</filter-name>
    <url-pattern>/faces/*</url-pattern>
  </filter-mapping>

to your web.xml.

To enable PrettyPrint set init-param 'tree' to true, the default is
false!
-----/Original Message-----
Must have been blind when I looked through the doc ;-)

What worries me a bit is that they still have some issues with
stability,
buffering and multiple JTidy instances per JVM...


thanks
Alexander

Reply via email to