wood burning stoves 2.0*
The moose likes Servlets and the fly likes question regarding to servlet 3.0 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 "question regarding to servlet 3.0" Watch "question regarding to servlet 3.0" New topic
Author

question regarding to servlet 3.0

Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 980
    
    2
hi all,
servlet 3.0 is annotation based, we use annotations instead of web.xml.
but as far as i know we use servletcontext and servletconfig because we want a centralized control to our application, i mean we use servletcontext and servletconfig because if any change is required we need to do that only in web.xml and effects will be seen on the whole application.
for ex: we define our database connection in web.xml and, later we require to change that we need to do that at one place only.

but my question is: how is it possible with annotations?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60789
    
  65

Not everything is possible with annotations. There are some things that a deployment descriptor is needed for.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: question regarding to servlet 3.0
 
Similar Threads
Get parameter from web.xml file
Servlet
Questions about ServletContext and ServletConfig
ServletConfig & Context ?
An objective question on servlets