giving delayed response

Madhu Vadlapudi <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <1052383118.3eba178e4e218@isacmail2>
Hello Friends,

In my servlet program i am trying to send a message to the client before
completion of servicing the request completly. Some more elobaration...


    public void doGet(HttpServletRequest request,
                      HttpServletResponse response)
        throws IOException, ServletException
    {
        PrintWriter out = response.getWriter();

        // This is the message that i have to give to the client.
        out.println("<html>");
        out.println("<body>");
        out.println("Processing your request..");
        out.println("</body>");
        out.println("</html>");

        //Then i will call the apropriate function that
        // serves the request of the client
        //Then i am writing the out put to a file 'FileName'

        // .... processing ....

        //Redirecting to the client

        response.sendRedirect(FileName);
    }

Here i am unable to see the message (which should be "Processing your
request..." ) when i test this servlet. What might be the reason, if anybody
has the script or any source code or suggestions please let me know.

Thanks in advance...

Madhu V

___________________________________________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.