Could you do something like the following? You'll be essentially doing
something like curl to get the output from the other app and simply writing
it out in your app. This has been tested but should help you get the idea. I
did something similar to send a POST request to an external site and then
just displayed the output in my app.

<%
      URL url = new URL("http://path_to_other_app/other_page.jsp";);
      HttpURLConnection conn = (HttpURLConnection) url.openConnection();
      conn.setUseCaches(false);
      conn.setRequestMethod("GET");

      // Get the response
      BufferedReader rd = new BufferedReader(new
InputStreamReader(conn.getInputStream()));
      String line;
      while ((line = rd.readLine()) != null) {
         out.println(line);
      }
%>

HTH
--LD

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Monday, December 27, 2004 3:10 PM
Subject: Re: Including jsp files that exist outside of the web application


>
>
> On Mon, 27 Dec 2004, QM wrote:
>
> > On Mon, Dec 27, 2004 at 01:58:53PM -0800, [EMAIL PROTECTED] wrote:
> > : Maybe that's the real question.  Is there a way to include jsp code
> > : outside of the webapp that will be compiled runtime?
> >
> > What about <jsp:include/>?
> > (or is that <%@ include />?  I forget which is runtime, and which is
> > compile-time...)
> >
> > Essentially, use whichever one you're not using now and see whether that
> > works ;)
>
> It's the jsp:include one that is runtime... and that seems to require it
> to be a jsp page in the web application... which, unfortunately, is our
> problem.
>
> Is there any way to include jsp code dynamically besides the jsp:include
> method?  If there was some way to do it in the code, then we could just
> load the jsp code from a file store of some sort.
>
> Thanks,
> -Raiden
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to