Hello,
Since you r communicating with an applet and not a browser.. i think these
methods will not work.. If u r using URL and URLConnection objects to
communicate with the servlet, these methods will not work.. so what u can do
is .. create a html file on the server from the servlet and have the applet
call this page using "showDocument()" method.
Hope this helps,
Pankaj

rajeshcm <[EMAIL PROTECTED]> wrote:
> Servlet Response Problem
>
>
> I am using a Servlet to process a request from Applet. I am sending the
> parameters from the applet to Servlet. These are getting passed to the
> Servlet and am able to print out all the parameters in the servlet. Now my
> requirement is to show back a HTML page indicating that these parameters
> were passed successfully.
>
> I have tried the following methods both unsuccessfully:
> 1) using the response.sendRedirect("http://........./Status.html");
> 2) using the response.setContentType("text/html");
>     PrintWriter pw = response.getWriter();
>     pw.println("<html>");
>       ........ all the other html code is written here
>     pw.println("parameters received OK");
>      ........ all the other html code is written here
>
>        pw.close():
>
> Can someone please help me solve this problem
>
> thanks
>
> Sai Prasad
> Pyxis Technology Solutions Pvt Ltd
>
> email : [EMAIL PROTECTED]
>
>

___________________________________________________________________________
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


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1

___________________________________________________________________________
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

Reply via email to