|
![]() Example of Servlet 3.0 Annotation |
|
New AnnotationThree annotations, @WebServlet, @WebFilter, and @WebListener, were added to Servlet 3.0. With these annotations, we do not need to use corresponding tags during configuration through the web.xml deployment descriptor file.Description of ExampleServlet, Filter, and Listener are defined with corresponding annotations to greet the user.Use This ExampleClick "Run" to run this example and display the greetings from Servlet, Filter, and Listener. |
|
Last updated: 2013 |
|
Home |
Products and Services |
Industries |
Support |
Store |
Partners |
Communities |
About
Copyright 2013, Oracle and/or its affiliates. All rights reserved.
Contact Oracle