wood burning stoves 2.0*
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
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 .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java. lang. IllegalAccessException
 
Similar Threads
Oracle9i Connectivity thru wsad5.o
unable to compile servlet
Servlet
unable t o compile the servlet .. plz help
tomcat- set JAVA_HOME point to jdk..