No annotations for servlets?
I was looking at the following article on java.net about the proposed annotations that J2EE 5 will support. I wonder why they are not adding annotations for servlets. If you are writing a simple application, sometimes there is no need to implement an MVC approach. Take servlets that just return JSON or XML to a XMLHttpRequest. Now if your project is already using MVC, then by all means integrate it. Something like what I listed below seems to make a lot of sense to me:
@Servlet(name="My Servlet", urlMapping="/myservlet.jspx")
public class MyServlet extends HttpServlet {
...
There is really no reason why I should have to write something to web.xml everytime I want to add a servlet (especially the verbose way you have to define servlets now). Imagine being able to just add the Spring MVC or Struts JARs to your classpath and having them work without configuring anything in web.xml.