Dear ...
There is no any technical error, just match (case sensitive)your input
fields from HTML file with the Servlet file, it will work properly.
Mr. Shahid Nawaz
>From: "Low Kok Leong" <lousai@t...>
>Reply-To: "Servlets" <servlets@p...>
>To: "Servlets" <servlets@p...>
>Subject: [servlets] Passing parameter to Servlet?
>Date: Fri, 20 Oct 2000 05:18:58 +0100
>
>Hi, I hving problem passing two parameter to servlet;
>below are my servlet sample code pls help ....!1
>
>----------------------code---------------------------------------------
>public class Login extends HttpServlet {
>
> public void doGet (HttpServletRequest request,
> HttpServletResponse response)
> throws ServletException, IOException
> {
>
> response.setContentType("text/html");
> PrintWriter out = response.getWriter();
>
> out.println("Login");
>
> String username = request.getParameter("name");
> String userpasswd = request.getParameter("passwd");
>
>---------------------end of code--------------------------------------
>However I can't print out what have been pass to the servlet usinf form.
>Is there any error in my code as I can compile it smoothly.