File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Annotations in servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Annotations in servlets" Watch "Annotations in servlets" New topic
Author

Annotations in servlets

Swapna latha
Ranch Hand

Joined: Dec 18, 2011
Posts: 70
What is annotations in servlets ? is it related to annotations in java 1.5 version.

Kumaravadivel Subramani
Ranch Hand

Joined: Jul 05, 2008
Posts: 166

Annotations are introduced in java 1.5 and the same annotation processing technique has been implemented in servlets to support annotations for configuring and other process. This reduced the burden of configuring xml files and more. For example @WebServlet,@InitParam etc.


No pain, No gain.
OCJP 1.6
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

Servlet annotations were introduced with Servlets 3.0 and are not available to earlier versions. See the Servlets 3 Spec for information.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Annotations in servlets
 
Similar Threads
Doubt Regarding Web.xml
Use of web.xml file for deploying a servlet
What is the need for marker interface ?
Annotating a Session Bean
How specify filter chain with @WebFilter