Is it possible execute this from inside a servlet, or should I just move the code into a regular class and keep using the jsp to call it?
Before we go any further, why on earth would you want to move client-side markup from a JSP into a servlet? It's just template text to be sent to the client, and that's best handled by a JSP rather than a servlet. [ October 03, 2006: Message edited by: Bear Bibeault ]
Originally posted by Jacob Fenwick: so I was trying to do it the other way, storing the markup inside the servlet.
Bad idea, and runs contrary to all modern accepted best practices.