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
How to pass arraylist to stored procedure in java?
Is singleton class thread safe?
What is a char in java?
What is better - 'bit-shift a value' or 'multiply by 2'?
I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?
Why can we not override static method?
Can we clone singleton object?
Does string is thread-safe in java?
In how many ways we can do synchronization in java?
How to invoke external process in java.
How to find the index of the largest number in an arraylist java?
What are reference variables in java?
Does java have a compiler?
Can we serialize arraylist in java?
What state does a thread enter when it terminates its processing in java programming?