Hi,
if you call the servlet via a HTTP GET/POST request in a
java.net.URLConnection then the servlet will respond by sending back it's
output via HTTP to the application that generates the HTTP request, which may
be your Applet. So, can your applet deal with the out put in this manner?
However if you contact the servlet via some other method ie create your
own socket connection and have the servlet listening on a specific port you
can set up your own protocols to handle what ever you want.
If you are creating a raw socket connection, make sure that you arte not
behind a firewall as most of them refuse this kind of request
Karl
Rajendra Mishra wrote:
> I have an applet which calls a servlet. I pass it an Image object which the
> servlet would convert to a .gif file.
> I am using the connection object and the ObjectOutputStream to do it.
> However, the servlet is not sending me the html page back. It simply does
> nothing.
> My question is, if I am calling a servlet from an applet then will the
> servlet's response not create a new html page?
>
> Thanks.
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html