<%@page attribute1="value1",attribute2="value2"... %>
which says this is a page directive: value1 for attribute1 and value2 for attribute2 holds good only for this page!
pageContext on the other hand is an object of class PageContext and it acts as a container for variables defined in a page and the life of these variables is equal to teh life of the jsp page they are defined in.
hope this helps.
Originally posted by NandaM Kishore:
Can anybody please help me by telling me the differences between page and pageContext?
I have gone through Java Server Programming(wrox press),but I couldn't understand anything.
I would be pleased if you can tell me the difference with a simple example.
Thanks in advance
With pageContext implicit object we can derive all other implicit objects
Like we can get out object from getOut method which is available.