Java Agent

In my application in each document there is a text box in which html code has been entered… much of this code is “messy” and i’m looking for a easy way to fix it. My idea is to use JTidy to scrub the html in each text box.

However, i’m not real famialar with writing java agents in domino. How would I go about importing JTidy (a java pacakage) into an agent so that I can call the classes inside it?

Subject: Java Agent

I’ve done exactly what you’re asking about. When in the designer, programmers pane, there should be an Edit Project button. Use that to include the jar file from JTidy. Then, you just need to import the package before you reference it.

Hope that helps.

Subject: RE: Java Agent

perfect thanks.