Hi

I have not used Struts with Jtidy but I've used the two technologies in
different projects. The way I see it you create a servlet filter that uses
the Tidy.parse method to parse the JSP output. Then you map the filter to
the main JSPs that includes the rest of the content. Everytime the
controller forwards or redirects your actions to the JSPs the servlet filter
will activate and pretty print the content.

Hope this helps

Regards, 

Néstor Boscán

-----Mensaje original-----
De: Dave Bender [mailto:[EMAIL PROTECTED] 
Enviado el: Friday, September 17, 2004 9:15 PM
Para: Struts Users Mailing List
Asunto: JTidy integration?

Has anybody integrated JTidy or any of the other HTML-prettifiers with
Struts?  I find Tidy does a good job of cleaning up JSPs, which tend to get
pretty spaced out particularly when there are lots of includes, but I don't
have a clear idea of where it would plug in.   Would it make sense to put it
into a servlet filter and then chain that onto the Struts controller
servlet?  Or is there a logical spot to put that functionality somewhere
inside the framework (attach to an action or something??).  Or would it be a
plug in?

Thoughts?

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to