When i run my
servlet, it gives me error message saying
10.5.1 500 Internal Server Error
The following is the code which compiles fine
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class TestForm extends HttpServlet
{
public void doGet(HttpServletRequest req, HttpServletResponse res)throws ServletException, IOException
{
try{
res.setContentType("text/html");
PrintWriter out = res.getWriter();
String name = req.getParameter("name");
String password = req.getParameter("email");
out.println("<HTML>");
out.println("<HEAD> <TITLE>
Testing Form " + "</TITLE></HEAD>");
out.println("<BODY>");
out.println(" Name:");
out.println("<INPUT TYPE = TEXT NAME = name VALUE ="" SIZE=15>");
out.println("Email:");
out.println("<INPUT TYPE = TEXT Email = email VALUE = "" SIZE=15>");
out.println("<INPUT TYPE=SUBMIT value = Ok >");
out.println("</BODY></HTML>");
}catch(IOException e){}
}
}
I am using web logic server and can't figure out why it is giving me this error but simple helloworld works.
Could anyone please help me out.
Thanks,