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

PageContext and ServletContext

 
Saurabh Naik
Ranch Hand
Posts: 87
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello..
I am just confused in PageContext and ServletContext... how it is usefulll ?
 
Oscar Costa
Ranch Hand
Posts: 31
Java Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

It's about Scope:
The ServletContext has the application scope, it contains objects presents in all the servlet life cycle, like configuration parameters presents on deployment descriptor...
And the PageContext is just for the jsp. But it have an add where you can get/set attributes from any scope. See the specification: http://java.sun.com/j2ee/1.4/docs/api/index.html

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic