This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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 Elasticsearch in Action this week in the Big Data forum!
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
 
rocket mass heater kickstarter
 
subject: Strange servlet behaviour