I'm trying to call a JSP from a Servlet in such a way that I can catch the
resulting stream for further processing. The code looks like this:

URL tempURL = new URL( jspURL );
URLConnection connection = tempURL.openConnection();
connection.setDoInput( true );
InputStream xmlStream = connection.getInputStream();

It crashes on the last call (java.io.FileNotFoundException). The URL works
if I just type it in manually, but the result from the JSP is an error
saying that the GET methof is not supported by the URL.


any suggestions?

Rob

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to