Create Servlets without present web.xml

Hi all,
I created a java web project for a JEE6 projekt, so it is not necessary to have a web.xml descriptor as long as i annotate my servlet.
I tried to create a servlet in IDEA by using the menu New Class->Servlet. I gave the name and package, said OK but nothing happened.
I added a web.xml again and it worked.
Is there a way to create a Servlet without web.xml and maybe even with a @WebServlet Annotation holding the urls i specified in a "Create Servlet Dialog/Wizard" ?
My IDEA is 12.1


1 comment
Comment actions Permalink

This will be fixed: see
"Create annotated servlet" option will be available in the dialog.


Please sign in to leave a comment.