• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java. lang. IllegalAccessException

 
Sujit udhane
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sujit,
please can you post the exception stack trace.
 
Sujit udhane
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Guys
I got my mistake , I corrected it ,In servlet program I haven't write
public keyword in front of class .
thanx louis .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic