out.println("test context attributes set by listener <br>"); out.println("<br>");
Dog dog=(Dog)getServletContext().getAttribute("dog");
out.println("Dog's breed is: "+dog.getBreed()); super.doGet(req, resp); }
}
Although the doGet is implemented I keep getting HTTP method GET is not supported by this URL from FireFox.
can anybody tell me what can be wrong.
Thanks,
Sherif
Bosun Bello
Ranch Hand
Joined: Nov 06, 2000
Posts: 1506
posted
0
Post the URL you are trying to access.
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Sherif Mahmoud
Greenhorn
Joined: Jun 01, 2007
Posts: 7
posted
0
Thanks for your reply. I found that I had a problem with my class files location under the application directory under webapps. That caused errors during the servlet startup. I got it working now.