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


Please Help Members By Posting Answers For Below Questions

How many types of exception can occur in a java program?

522


Describe the term diamond problem.

561


What is the difference between assignment and initialization?

542


what is the purpose of using rmisecuritymanager in rmi?

550


What is hashset in java?

516






Is 64bit faster than 32 bit?

564


What is the purpose of using javap?

600


What is a method vs function?

541


Which collection is sorted in java?

532


What is the difference between a break statement and a continue statement?

583


How to do a true java ping from windows?

605


Is multiple inheritance supported by java?

491


What is an example of procedure?

499


What is nextline method in java?

545


How many bytes is a string?

551