This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes is scopes related to attributes only or for variables also? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "is scopes related to attributes only or for variables also?" Watch "is scopes related to attributes only or for variables also?" New topic
Author

is scopes related to attributes only or for variables also?

yamini nadella
Ranch Hand

Joined: Apr 13, 2004
Posts: 257
(1) Instance variable and local variables which are defined JSP declaration and scriptlets comes under which scope?
(2) is this scope concept related to only attributes or for variables also?
(3) parameters of URL comes in which scope?
Anthony Watson
Ranch Hand

Joined: Sep 25, 2003
Posts: 327
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.

2) Both

3) Request scope


Anthony W.<br />MCP, SCJP 1.4, SCJD, SCWCD 1.3, SCWCD 1.4, SCBCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: is scopes related to attributes only or for variables also?