I need to be able to access a jsp file on another server and read the html
information that will be presented when the jsp page executes.
Currently, with the code I have now, what I get back is the text that makes
up the actually jsp page. I just want the html that should be produced
after the called jsp page executes.
tia for any help. Here's the code I'm using:

URL url = new
URL("http://webdev.valpak.com:84/projectutility/filesaffected.jsp?files_affe
cted=testingtestingtesting");
URLConnection connection = url.openConnection();
InputStream stream = connection.getInputStream();
BufferedInputStream in = new BufferedInputStream(stream);
int bTotal = in.available();
byte fileByte[] = new byte[bTotal];
in.read( fileByte );
String textString  = new String( fileByte );
out.print(textString);

===========================================================================
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