>From [EMAIL PROTECTED] Wed Jun 7
>12:39:16 2000
Received: from scam.xcf.berkeley.edu (scam.XCF.Berkeley.EDU [128.32.43.201]) by
lgs-systems.com (8.8.5) id MAA26159; Wed, 7 Jun 2000 12:39:15 -0600 (MDT)
Received: (qmail 59326 invoked by alias); 7 Jun 2000 18:35:35 -0000
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Delivered-To: mailing list [EMAIL PROTECTED]
Received: (qmail 59316 invoked from network); 7 Jun 2000 18:35:35 -0000
Received: from mail.ecustomers.com (HELO ecustomerpdc.ecustomers.com) (216.140.139.2)
by scam.xcf.berkeley.edu with SMTP; 7 Jun 2000 18:35:35 -0000
Received: by ecustomerpdc.ecustomers.com with Internet Mail Service (5.5.2650.21)
id <MC5GN1F3>; Wed, 7 Jun 2000 13:33:10 -0500
Message-ID: <[EMAIL PROTECTED]>
From: Erik Huddleston <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>,
[EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: using URLConnection
Date: Wed, 7 Jun 2000 13:33:08 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01BFD0AE.D492468A"
X-UIDL: a53067b6145904e4e49e3e295d32d85c
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01BFD0AE.D492468A
Content-Type: text/plain;
charset="iso-8859-1"
Sounds like your JSP enine is misconfigured.
Erik
--
Erik Huddleston, [EMAIL PROTECTED]
Chief Architect, eCustomers.com
Microsoft Java MVP
> -----Original Message-----
> From: Rick Reumann [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 07, 2000 1:28 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: using URLConnection
>
>
> 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]
>
------_=_NextPart_001_01BFD0AE.D492468A
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>RE: using URLConnection</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2>Sounds like your JSP enine is misconfigured.</FONT>
</P>
<BR>
<P><FONT SIZE=3D2>Erik</FONT>
<BR><FONT SIZE=3D2>--</FONT>
<BR><FONT SIZE=3D2>Erik Huddleston, [EMAIL PROTECTED]</FONT>
<BR><FONT SIZE=3D2>Chief Architect, eCustomers.com</FONT>
<BR><FONT SIZE=3D2>Microsoft Java MVP </FONT>
</P>
<P><FONT SIZE=3D2>> -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>> From: Rick Reumann [<A =
HREF=3D"mailto:[EMAIL PROTECTED]">mailto:rick_reumann@coxtarget=
.com</A>]</FONT>
<BR><FONT SIZE=3D2>> Sent: Wednesday, June 07, 2000 1:28 PM</FONT>
<BR><FONT SIZE=3D2>> To: [EMAIL PROTECTED]; =
[EMAIL PROTECTED]</FONT>
<BR><FONT SIZE=3D2>> Subject: using URLConnection</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> I need to be able to access a jsp file on =
another server and </FONT>
<BR><FONT SIZE=3D2>> read the html </FONT>
<BR><FONT SIZE=3D2>> information that will be presented when the jsp =
page executes.</FONT>
<BR><FONT SIZE=3D2>> Currently, with the code I have now, what I get =
back is the </FONT>
<BR><FONT SIZE=3D2>> text that makes </FONT>
<BR><FONT SIZE=3D2>> up the actually jsp page. I just want the html =
that should be </FONT>
<BR><FONT SIZE=3D2>> produced </FONT>
<BR><FONT SIZE=3D2>> after the called jsp page executes. </FONT>
<BR><FONT SIZE=3D2>> tia for any help. Here's the code I'm =
using:</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> URL url =3D new </FONT>
<BR><FONT SIZE=3D2>> URL("<A =
HREF=3D"http://webdev.valpak.com:84/projectutility/filesaffected" =
TARGET=3D"_blank">http://webdev.valpak.com:84/projectutility/filesaffect=
ed</A>.</FONT>
<BR><FONT SIZE=3D2>> jsp?files_affe</FONT>
<BR><FONT SIZE=3D2>> cted=3Dtestingtestingtesting");</FONT>
<BR><FONT SIZE=3D2>> URLConnection connection =3D =
url.openConnection();</FONT>
<BR><FONT SIZE=3D2>> InputStream stream =3D =
connection.getInputStream();</FONT>
<BR><FONT SIZE=3D2>> BufferedInputStream in =3D new =
BufferedInputStream(stream);</FONT>
<BR><FONT SIZE=3D2>> int bTotal =3D in.available();</FONT>
<BR><FONT SIZE=3D2>> byte fileByte[] =3D new byte[bTotal];</FONT>
<BR><FONT SIZE=3D2>> in.read( fileByte );</FONT>
<BR><FONT SIZE=3D2>> String textString =3D new String( =
fileByte );</FONT>
<BR><FONT SIZE=3D2>> out.print(textString); </FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> ---</FONT>
<BR><FONT SIZE=3D2>> To unsubscribe, mail =
[EMAIL PROTECTED]</FONT>
<BR><FONT SIZE=3D2>> To get help, mail =
[EMAIL PROTECTED]</FONT>
<BR><FONT SIZE=3D2>> </FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01BFD0AE.D492468A--
---
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