Close
jGuru Forums
Posted By: Anupama_G Posted On: Thursday, April 19, 2001 10:03 PM
Hi friends This is my servlet and it is not working..what's wrong?? Can anybody help me?? import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public class LoginServlet extends HttpServlet{ public void doPost(HttpServletRequest req,HttpServletResponse res) throws IOException, ServletException{ String userid=req.getParameter("userid"); String password=req.getParameter("password"); res.setContentType("text/html"); ServletOutputStream out = res.getOutputStream(); try { if((userid.equals("user")&&password.equals("user"))) { out.println(" "); out.println(" "); /*out.println(" ""
Re: Servlet not working
Posted By: Michael_Wax Posted On: Friday, April 20, 2001 05:19 PM