This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes servlet annotation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet annotation" Watch "servlet annotation" New topic
Author

servlet annotation

Miku Ranjan
Ranch Hand

Joined: Oct 11, 2011
Posts: 98
Hi,
How I can create a custom annotation in servlet.

Thanks
Miku
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

For what purpose?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

Maybe this will help: http://docs.oracle.com/javase/tutorial/java/javaOO/annotations.html

http://www.kodejava.org/examples/501.html


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Miku Ranjan
Ranch Hand

Joined: Oct 11, 2011
Posts: 98
Hi Bear,
For creating a custom servlet annotation how I can do ?
Miku Ranjan
Ranch Hand

Joined: Oct 11, 2011
Posts: 98
Hi Hebeart,
Thanks for the link .
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Miku Ranjan wrote:Hi Bear,
For creating a custom servlet annotation how I can do ?

I still don't know what you mean by a "servlet annotation". You can create your own annotations for any class (or field, or whatever). Whether you use it with servlets or not is up to you.
Jerome Gao
Greenhorn

Joined: Nov 22, 2011
Posts: 13

Bear Bibeault wrote:
Miku Ranjan wrote:Hi Bear,
For creating a custom servlet annotation how I can do ?

I still don't know what you mean by a "servlet annotation". You can create your own annotations for any class (or field, or whatever). Whether you use it with servlets or not is up to you.


Say well,a annotation is not about the type of class,
Whether you use it with servlets or not is up to you,No matter whether you use servlets can use annotations



If we can only encounter each other rather than stay with each other, then I wish we had never encountered.
 
jQuery in Action, 2nd edition
 
subject: servlet annotation
 
Similar Threads
@webServlet is not working in weblogic10.3
package javax.servlet.annotation does not exist
Doubt Regarding Web.xml
regarding unsupported post method
Injecting EJB's using DI