How to get the html output of a local JSP page from my Java code, or use a JSP as an HTML templates.

Discussion in 'Java' started by DigitalUncle, Nov 2, 2004.

  1. DigitalUncle

    DigitalUncle Guest

    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.
     
    DigitalUncle, Nov 2, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. karim
    Replies:
    1
    Views:
    792
    George Ter-Saakov
    Jun 26, 2003
  2. JKop
    Replies:
    3
    Views:
    526
  3. andres
    Replies:
    1
    Views:
    5,340
    dgoyani
    Oct 23, 2007
  4. recover
    Replies:
    2
    Views:
    863
    recover
    Jul 25, 2006
  5. Matt
    Replies:
    1
    Views:
    169
    Brynn
    Jan 18, 2004
Loading...

Share This Page