File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Doubt  on implicit objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Doubt  on implicit objects" Watch "Doubt  on implicit objects" New topic

Doubt on implicit objects

mara thamizhan
Ranch Hand

Joined: Jul 05, 2006
Posts: 74
Dear dudes,
I was going through getting and setting attributes for various scopes in jsp through implicit objects.

I have a doubt on this:
If we can get and set attributes for any scope through pagecontext
implicit object then what is the need of having implicit objects for other scopes in jsp.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

There are things particular to those objects, besides attributes.

Request parameters, session ID, context init params, etc...

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3381

As you said there is an important term here scope.

If at all you have only one "pageContext", then it will be heavily overloaded as it is maintained per application. That's why they have several scopes for several parameters and reasons.

Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
I agree. Here's the link:
subject: Doubt on implicit objects
It's not a secret anymore!