wood burning stoves 2.0*
The moose likes Servlets and the fly likes Strange servlet behaviour Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Strange servlet behaviour" Watch "Strange servlet behaviour" New topic
Author

Strange servlet behaviour

Chris Siciliano
Greenhorn

Joined: Apr 02, 2012
Posts: 9
Hello everyone !

I read in the servlet 3.0 spec that servlet declare with @WebServlet must extends HttpServlet. I test with extends GenericServlet or implements Servlet
and it works...

Then i read when i call getAsyncContext() without call startAsync() before throws IllegalException. But it returns just null (no exception)..

Do you have explanations about this behaviour ?? I used Tomcat 7 like container.

Thank you !!!


SCJP6
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Strange servlet behaviour