• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

what is the difference between pagecontext and rest of internal objects

 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello friends

what are these requests and.. and why it is used and\
what is the.. difference between page context and. request and...

rest
and. also...

we ahve this page context in jsp and also .. servlet.........

so can any give me... clear idea tegarding this..

why we use

and...
Page context so.. highlighted a lot than other internal onjects......

thank you very much friends.......
 
Ranch Hand
Posts: 242
Mac Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kajal,

If you ae asking difference between the implicit objects provided by EL (Expression Language).

Then among all the implicit objects that EL provides, all are maps except pageContext.

For example, if you talk about requestScope, then it's a map of all the attributes stored in request scope. requestScope is not an instance of ServletRequest.
However, pageContext is a reference or rather you can say a bean which provides you the instance of various scope objects.e.g. ${pageContext.request} will give you an instance of request.

Regards,
Khushhal
 
kajal mukergi
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

The main advantange of pageContext over other implicit objects like session , request , response etc. they look for asked attributes in their respect only.
If you are looking for an attribute in pageContext , the container will look for that attribute in request , seesion & application scope .
It has a method
<code> pageContext.findAtrribute(String name) </code>
through which you can find a particular attribute.

Hope this clears the doubt .If you are stil not clear just let us know.

Regards
Arvind
Either you do or dont theirs' nothing called try.
 
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Originally posted by kajal mukergi:

Hello friends

what are these requests and.. and why it is used and\
what is the.. difference between page context and. request and...

rest
and. also...

we ahve this page context in jsp and also .. servlet.........

so can any give me... clear idea tegarding this..

why we use

and...
Page context so.. highlighted a lot than other internal onjects......

thank you very much friends.......



Hello kajal mukergi,

Hope you might have got the answers if the ranchers were able to get your query correctly.

But to me, it seemed like you were in a hurry which did not even allow you to patiently quote your requirement.

Can you please try to mention what you need in a clear and legible way in your future posts? so that it will be helpful to fetch reasonably-good answers.
 
The only thing that kept the leeches off of me was this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic