• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in the Tag Scope

 
raja ram
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In HFSJ Q 18 in chapter 10 it is said that the container will create a page scoped attribute with the same name as that of tag
file tag attribute.

that means if i have a tag file tag like below.


so based on the above statement the container should create page scoped attribute with name user
but when i say


after outside the tag it should print the value as test_user but it prints nothing, that means the attribute is not accessible
outside the tag; because the tag attributes are having tag scope, but what does the above statement mean?

Thanks
 
Sarat Koduri
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
raja.. i would to add a bit more information over here..,

The user attribute is having Page Scope inside the tag file that is available in the tagdir you have specified and ofcourse it has only tag scope inside the jsp where you have called this..

Hope you got it..

wanna know more..
 
raja ram
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok thanks i got it

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic