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. Advertisements

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:
    902
    George Ter-Saakov
    Jun 26, 2003
  2. aaa
    Replies:
    3
    Views:
    4,965
    Verde
    May 6, 2005
  3. JKop
    Replies:
    3
    Views:
    667
  4. andres
    Replies:
    1
    Views:
    5,521
    dgoyani
    Oct 23, 2007
  5. Sam
    Replies:
    3
    Views:
    1,543
    Gozirra
    Nov 28, 2006
  6. recover
    Replies:
    2
    Views:
    1,054
    recover
    Jul 25, 2006
  7. Replies:
    2
    Views:
    712
  8. Matt
    Replies:
    1
    Views:
    267
    Brynn
    Jan 18, 2004
Loading...