File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes java. lang. IllegalAccessException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "java. lang. IllegalAccessException" Watch "java. lang. IllegalAccessException" New topic

java. lang. IllegalAccessException

Sujit udhane

Joined: Dec 27, 2003
Posts: 4
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
PrintWriter pw=res.getWriter();
pw.println("<html><body><h1><center>HELLO WORLD!!!</center></h1></body></html>");
String uname,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
please can you post the exception stack trace.
Sujit udhane

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 .
I agree. Here's the link:
subject: java. lang. IllegalAccessException
It's not a secret anymore!