aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Doubt on optional scope attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt on optional scope attribute" Watch "Doubt on optional scope attribute" New topic
Author

Doubt on optional scope attribute

Veena Pointi
Ranch Hand

Joined: Jun 20, 2002
Posts: 442
In HFSJ page 457 there is a question .It was in context to <c:set tag

Q : If I don't specify scope,does that mean it will find attributes that are only within page scope,or will it do a search beginning with page scope?

Ans : If you don't use the optional scope attribute in the tag,then the tag will only look in the page scope space . Sorry,you will just have to know exactly which scope you are dealing with.

I am confused with this explanation .
Is it trying to say default scope is page? I understand if we don't specify scope in c:set it sets/adds attribute in page scope by default.But I didn't understand what the above explanation is trying to convey.

Can anybody shed some light on this.

Thanks
Veena

>


SCJP1.4
"Continuous effort - not strength or intelligence - is the key to unlocking our potential."
*Winston Churchill
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Q : If I don't specify scope,does that mean it will find attributes that are only within page scope,or will it do a search beginning with page scope?

Is this question about c:set ? I don't understand why they refer to finding attributes. c:set just set things, it doesn't look for anything.

[My Blog]
All roads lead to JavaRanch
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61658
    
  67

Have you still not downloaded the JSTL Specification? it answers all of these trivial questions.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
avi sinha
Ranch Hand

Joined: Mar 15, 2009
Posts: 453

Veena Pointi wrote:
Is it trying to say default scope is page?
>


yes .
default for a scope attribute is always the page scope.

avi sinha


SCJP 5.0 SCWCD 5.0
ramakrishna kulkarni
Greenhorn

Joined: Feb 06, 2009
Posts: 14
They are just trying to say that you have to specify the scope to which you are binding attribute. If you do not default is page scope.
I hope I clear with this concept
Veena Pointi
Ranch Hand

Joined: Jun 20, 2002
Posts: 442
By default c:set will bind attribute to page scope is clear to me .

Is this question about c:set ? I don't understand why they refer to finding attributes. c:set just set things, it doesn't look for anything.


Yes Christopher .This question is about c:set . I also didn't understand why they specified about finding attributes .That is why I posted this question to know if I am missing to understand something.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt on optional scope attribute