what is the difference between pagecontext and
servletcontext?
Answer Posted / munesh yadav
PageContext is used to store the attributes as Objects like
key&value pairs in JSP .Its mostly used in Beans concept or
pageContext is used for url requesting .
ServletContext provides runtime environment for all the
servlets in web application.The ServletContext gives
information about the container in
which the servlet (or JSP) is running in. Parameters for
this can be setup in the web application deployment
descriptor and there is one ServletContext per web
application.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Why is string class considered immutable?
What are thread safe functions?
What is boolean data type in java?
What is the role of the java.rmi.naming class?
We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.
What are the 4 versions of java?
Explain jvm, jre, and jdk?
What are abstract methods in java?
What is difference between array and vector?
How do you add an element to an arraylist in java?
What is hasnext in java?
What does it mean that a class or member is final?
What are the advantages of assembly language?
What are the main uses of this keyword?
what is a green thread? : Java thread