I doubt there is any solution other then validating the output of the JSP. The question is the same as "I can spell-check a text file, how do I spell-check a Java program that is writing out a text file?"
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.