Interesting.  Thanks for the info,

-dain

On Feb 13, 2007, at 1:02 PM, Sachin Patel wrote:


From http://weblogs.java.net/blog/gmurray71/archive/2006/02/ servlets_update.html

So what big changes were made in Servlet 2.5?

* ServletContext.getContextPath() - Ever wonder what the context root was for your web application? This API is a long need addition. * Annotations - Added annotations for Java persistence, web service, declaring roles, run as, and EJBs. We did not add annotations for decarling servlets, filters, and listeners in this release though this will be a topic of discussion in the next servlet release. * Resource Injection - Resource injection is a way of injecting references of container managed resources such as data sources, environment entries, or web services into container managed components such as servlets, filters and listeners. Support for resource injection was added for Java Enterprise Edition containers. * web.xml Changes- Removed the need to have a web.xml in web applications without servlets, filters or listeners. Some conveniences for declaring components in the web.xml were added.


-sachin


On Feb 13, 2007, at 3:48 PM, Dain Sundstrom wrote:

How do you declare the servlets and the servlet mappings? Or does this only work with wars that don't have servlets?

-dain

On Feb 13, 2007, at 10:16 AM, Sachin Patel wrote:

Actually, according to the specification:

"Starting with version 5 of the Java EE platform, a web application module, an enterprise bean module, or an application client module need not contain a deployment descriptor"

-sachin


On Feb 13, 2007, at 11:13 AM, Dain Sundstrom wrote:

I don't think the web.xml is optional. I am not aware of any annotations to declare servlets and their mappings to URLs. Actually, there don't seem to be any annotations in the javax.servlet.* packages.

-dain

On Feb 13, 2007, at 6:14 AM, Sachin Patel wrote:

I don't think so.

-sachin


On Feb 12, 2007, at 11:59 PM, Jarek Gawor wrote:

Is anyone working on making the web.xml file optional?

Jarek






Reply via email to