Hi Everybody:

    I have a servlet that sends a login form, and then it process the
POST request from that form, and if the user is valid it send the
request to the doGet method of another servlet.  The code is something
like this:

public void doPost (HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException
{
     String userName = request.getParameter("userid");
     String userPassword = request.getParameter("password");

    if(valid(userName, userPassword))
    {
      ClientServlet tc = new ClientServlet();
      tc.doGet(request, response);
    }    else
    {   // send some error message }
}


    Everything work fine, but the problem is when I am working in the
other servlet (ClientServlet) and for some reason I want to refresh the
page, I click on reload on the browser and instead of reloading the get
of ClientServlet, it sends me a dialog "Repost form data". This is in
Communicator 4.6, so the browser seem to try to reload the last post
request instead of the get request. The question is there's a way to
tell the browser to reload the get intead of the post ??? Maybe
modifying the browser history.............

    I would appreciate any help...

Andres Portillo

___________________________________________________________________________
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