wood burning stoves
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Strange servlet behaviour" Watch "Strange servlet behaviour" New topic

Strange servlet behaviour

Chris Siciliano

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 !!!

I agree. Here's the link: http://aspose.com/file-tools
subject: Strange servlet behaviour
It's not a secret anymore!