File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes How to put instant / local variables in page scope explicitly? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "How to put instant / local variables in page scope explicitly?" Watch "How to put instant / local variables in page scope explicitly?" New topic
Author

How to put instant / local variables in page scope explicitly?

yamini nadella
Ranch Hand

Joined: Apr 13, 2004
Posts: 257
According to below answer how to put variables into page scope?


Anthony Watson
ranch hand
--------------------------------------------------------------------------------
1) Instance variables are available anywhere on the page/translation unit. Local variables are available anywhere on the page after they have been declared. You could say that instance and local variables have page scope, but they will not be placed into the page context unless you explicitly put them there.
Osama Hasan
Ranch Hand

Joined: Sep 30, 2002
Posts: 53
Here putting variables into page context means to add them to the attribute-list of the page context object.


SCJP 1.4<br />SCWCD 1.4
 
wood burning stoves
 
subject: How to put instant / local variables in page scope explicitly?
 
Similar Threads
is scopes related to attributes only or for variables also?
Autoboxing and initialization of non-instance variables (Need cameron's permission)
initialization error
Local variables
might not have been initialized