| Author |
java. lang. IllegalAccessException
|
Sujit udhane
Greenhorn
Joined: Dec 27, 2003
Posts: 4
|
|
Hello, This is Code of Servlet Program class HelloWorld extends HttpServlet { public void init()throws ServletException{ } public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException,IOException { res.setContentType("text/html"); PrintWriter pw=res.getWriter(); pw.println("<html><body><h1><center>HELLO WORLD!!!</center></h1></body></html>"); String uname,pwd; uname=req.getParameter("uname"); pwd=req.getParameter("pwd"); pw.println("Hello "+uname); } } Thanks ,In advance [ February 11, 2004: Message edited by: Sujit udhane ]
|
 |
Ben Dover
Ranch Hand
Joined: Jan 30, 2004
Posts: 91
|
|
Sujit, please can you post the exception stack trace.
|
 |
Sujit udhane
Greenhorn
Joined: Dec 27, 2003
Posts: 4
|
|
Hello Guys I got my mistake , I corrected it ,In servlet program I haven't write public keyword in front of class . thanx louis .
|
 |
 |
|
|
subject: java. lang. IllegalAccessException
|
|
|