>From [EMAIL PROTECTED]  Wed Jun  7 
>12:23:16 2000
Received: from scam.xcf.berkeley.edu (scam.XCF.Berkeley.EDU [128.32.43.201]) by 
lgs-systems.com (8.8.5) id MAA22598; Wed, 7 Jun 2000 12:23:15 -0600 (MDT)
Received: (qmail 53580 invoked by alias); 7 Jun 2000 18:20:28 -0000
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Delivered-To: mailing list [EMAIL PROTECTED]
Received: (qmail 53571 invoked from network); 7 Jun 2000 18:20:27 -0000
Received: from sunserv1.valpak.com (168.151.253.14)
  by scam.xcf.berkeley.edu with SMTP; 7 Jun 2000 18:20:27 -0000
Received: from D00452.valpak.com ([198.252.38.209]) by
          sunserv1.valpak.com (Netscape Messaging Server 4.15) with ESMTP
          id FVSQZK00.O40; Wed, 7 Jun 2000 14:21:20 -0400
From: "Rick Reumann" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Date: Wed, 7 Jun 2000 14:27:47 -0400
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Subject: using URLConnection
Reply-to: [EMAIL PROTECTED]
Message-ID: <393E5BE3.1332.152304D@localhost>
Priority: normal
X-mailer: Pegasus Mail for Win32 (v3.12c)
X-UIDL: ac26a762bb52c0b6fb9ada8c26afda8a

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, mail [EMAIL PROTECTED]
To get help, mail [EMAIL PROTECTED]

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