HI all ,
I have posted this question since two weeks and still without any reponse
from the forrum,
Did anybody experience this problem in the past ?
My environment is :(server linux-2.2.5 , apach ,,jdk1.1.7B, jsdk2.1)
                                 ( clients win98 ,IE5,IE4,NetSacpe 4)

I have the following sample code representing two servlets (servletA and
servletB) .
servletA reads a user name and password from a POST FORM the passes them to
servletB
to process them. servletB  just displays back  what it received from
servletB.

This couple of servlet works fine with Netscape 4 , but each time it is
accessed throught IE5 , servletA
displays its normal POST FORM , but  when it trie to pass control to
servletB an error occurs in IE5 (and IE4)
saying that there is a problem that prevent pages to be displayed ("PAGE
INDISPONIBLE") page not available , and suggest to review browser setting.

Can anybody take a look to these two servlets and tell me what is wrong with
IE5 please .

PS : ServletB can be accessed individually vi IE5 (4) and displays null
values

THANKS a lot in advance.
Sidaty [EMAIL PROTECTED]





/* SERVLET A CODE */

import java.io.*;
import java.servlet.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class servletA     extends HttpServlet {

   public void doGet(HttpServletRequest req,HttpServletResponse resp)
               throws IOException , ServletException
       {
          doPost(req,resp);
       }



   public void doPost(HttpServletRequest request,HttpServletResponse
response)
               throws IOException , ServletException
       {
         PrintWriter out;
         String title = "Simple Servlet Output";

     /* set content type and other response header fields first */
        response.setContentType("text/html");

     /* write the data of the response */

        out = response.getWriter() ;
        out.println("<HTML><HEAD><TITLE>");
        out.println(title);
        out.println("</TITLE></HEAD><BODY>");
        out.println("<H1>" + title + "</H1>");
        out.println("<P>This is output from servlet08 Servlet.");
        out.println("<FORM METHOD=POST ");
        /*
out.println("ACTION=\"http://serverhost:8081/servlet/servletB\">"); */
        out.println("ACTION=http://serverhost:8081/servlet/servletB>");
        out.println("<P> Nom de Login : ");
        out.println("<INPUT NAME=name TYPE=TEXT SIZE=8>");
        out.println("<P>Mot de Passe  : ");
        out.println("<INPUT NAME=pwd TYPE=PASSWORD SIZE=10>");
        out.println("<P><INPUT NAME=Conf TYPE=SUBMIT VALUE=OK>");
        out.println("</FORM>");
        out.println("</BODY></HTML>");
        out.close();
      }
  }



/*   SERVLET B CODE */



import java.io.*;
import java.servlet.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class servletB extends HttpServlet {

   public void doGet(HttpServletRequest req,HttpServletResponse resp)
               throws IOException , ServletException
       {
          doPost(req,resp);
       }


   public void doPost(HttpServletRequest req,HttpServletResponse resp)
               throws IOException , ServletException
       {
          handleParam(req,resp);
       }



   public void handleParam(HttpServletRequest request,HttpServletResponse
respon
se)
               throws IOException , ServletException
       {
       /*  doGet(request,response);  */
         PrintWriter out;
         String title = "Simple Servlet Output";
         String user = null;
         String passwd = null;

     /* set content type and other response header fields first */

        response.setContentType("text/html");

     /* write the data of the response */

        out = response.getWriter() ;
        out.println("<HTML><HEAD><TITLE>");
        out.println(title);
        out.println("</TITLE></HEAD><BODY>");
        out.println("<H1>" + title + "</H1>");
out.println("<P>This is output from servlet18 Servlet.");
        user = request.getParameter("name");
        passwd =request.getParameter("pwd");
        out.println("<P>User = " + user);
        out.println("<P>Pwd  = " + passwd);
        out.println("</BODY></HTML>");
        out.close();
      }

  }

___________________________________________________________________________
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