Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

@Servlet

 
K Sharmaa
Greenhorn
Posts: 5
Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All!!

I am working with Servlet3.0. but got stuck in between just because i have read this : Servlets and Filters As POJO...
I have worked with @WebServlet annotation but what about @Servlet and @GET , @POST etc.
Can anybody tell me which is to be used. Because I am not finding any solution to use @Servlet Annotations.
Thanks.
 
Piotr Nowicki
Ranch Hand
Posts: 611
1
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The best information what annotations you should use can be found in the specification - here: http://jcp.org/aboutJava/communityprocess/mrel/jsr315/index.html

There is a @WebServlet annotation. Where did you read about the @Servlet one?

Cheers!
 
K Sharmaa
Greenhorn
Posts: 5
Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks For Your Reply
Something called : JSR 175 annotations ... i was wondering that may be annotations provided there are available n can be used in JEE6.
i have added following jar file for this purpose:
javax.servlet.http.annotation
javax.servlet.http.annotation.jaxrs.



Thats y i got confused.

I have Servlet-3_0-final-spec.pdf
Now i think i should stick to that only. Thanks for your guidance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic