File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servletContext& ServletConfig

 
Sivasankar Dhandapani
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When we need to servletContext and ServletConfig , in what way it will help , when we go for servlet as controller?
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
- to get init parameters
- to get application resources
- to get request dispatchers
- to get application attributes

... and more, but a quick look at the API will show you what can be done through those interfaces.
 
Amarender Reddy
Ranch Hand
Posts: 54
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
servlet config cannot communicate directly with the servlet container.

so it uses servlet context as a medium to talk to servlet container to avail

varoius services

cheers
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ulf Dittmer:
but a quick look at the API will show you what can be done through those interfaces.


Yes. There is no other better substitute.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic