D
DigitalUncle
How do I invoke a JSP page and get its output (html) within my servlet
code (I don't want to write this to the HTTP Response, I need to use
it in my code).
I want to use JSPs as HTML templates for emails. I have a servlet that
will send emails. This servlet needs to invoke a JSP page passing some
parameters by means of GET method. It will then get the output of the
JSP an send it via email.
The servlet and the JSP are on the same server!!! How can I invoke the
JSP locally without using URLConnection. Assume I have no idea what
the server name is, and if there is SSL or not.
Please help.
code (I don't want to write this to the HTTP Response, I need to use
it in my code).
I want to use JSPs as HTML templates for emails. I have a servlet that
will send emails. This servlet needs to invoke a JSP page passing some
parameters by means of GET method. It will then get the output of the
JSP an send it via email.
The servlet and the JSP are on the same server!!! How can I invoke the
JSP locally without using URLConnection. Assume I have no idea what
the server name is, and if there is SSL or not.
Please help.