Re: Invoking JSP/servlet from non-request thread?

2008-09-18 Thread Johnny Kewl
- Original Message - From: "Jess Holle" <[EMAIL PROTECTED]> To: Sent: Thursday, September 18, 2008 6:36 PM Subject: Invoking JSP/servlet from non-request thread? I want to invoke JSPs/servlets from non-request threads, e.g. to render HTML for use in e-mails, e

Invoking JSP/servlet from non-request thread?

2008-09-18 Thread Jess Holle
I want to invoke JSPs/servlets from non-request threads, e.g. to render HTML for use in e-mails, etc. I tried the simple-minded approach (with Tomcat 6.0.18): ServletContext servletContext = MyContextMonitor.getContext( "/myContextName" ); RequestDispatcher dispatcher = se