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
What do you mean by data type?
What is this () in java?
Write code to implement bubble sort in java?
What is multithreading in java?
What is method and methodology?
What is null mean in java?
What does n mean?
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
Where are variables stored?
what is collatration?
What is the use of keywords in java?
What is an iterator interface in java programming?
'A class is a template for an object' explain this statement.
What is the difference between && and & in java?
what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread