A code fragment that might help you is below:
(where applet parameter icodeURL is something like
http://yourserver/servlet/servletname and you import java.net and java.io)
boolean getInformixAC() {
URL icodeURL = null;
times=1;
Notes.setText("" );
if(skip == 0) {
URLiname = getParameter("icodeURL");
if (URLiname == null) URLiname =
"http://mcars007:80/cgi-bin/echo1.cgi";
icodeStr = new String( URLiname );
Parse_pro_bcs();
}
skip++;
try {
sel_stmt = icodeStr + "&skip=" + skip;
icodeURL = new URL(sel_stmt);
}
catch( MalformedURLException e) {
setBackground(Color.green);
return false;
}
String irbuf;
String URLiname;
try {
InputStream iistream = icodeURL.openStream();
DataInputStream idstream = new
DataInputStream(new
BufferedInputStream(iistream));
while((irbuf = idstream.readLine()) != null) {
try { parseData(irbuf); }
catch( Exception e) {
setBackground(Color.red);
return false;
}
}
}
catch(IOException e) {
setBackground(Color.blue);
return false;
}
return true;
}
> -----Original Message-----
> From: CN User [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, June 10, 1999 2:01 PM
> To: [EMAIL PROTECTED]
> Subject: Applets with Servlet or jsp
>
> Can you call a servlet or jsp from within a applet?
>
> Or should one just connect back to the server using a Socket connection.
>
> Thanks
>
>
> Alexis Bose
>
> ==========================================================================
> =
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff JSP-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".