This week's book giveaway is in the Open Source Projects forum.
We're giving away four copies of Eclipse Collections Categorically: Level up your programming game and have Donald Raab on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Tag Files : Tag Attributes Doubt !!!

 
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In tag files, we send Tag attribute as

<myTags:Header subTitle="We Take String" />

And use in the Tag File (.tag or .tagx) as :

${subTitle}

In which scope this subTitle attribute is ?
 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
tag scope , once tag is closed its not available anymore
 
Sandeep Vaid
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

In tag files, we send Tag attribute as

<myTags:Header subTitle="We Take String" />

And use in the Tag File (.tag or .tagx) as :

${subTitle}

In which scope this subTitle attribute is ?



i know the scope of the attribute is tag scope in the JSP File meaning
in my JSP if i do :


It would be illegal

BUT What i am talking about is the TAG File (and not JSP File)

In TAG File (Here there is no tag)we say

${subTitle}

Now As per normal rules, For This EL statement , the container will start searching subTitle attribute in page, request,session and the application scope? In which of these 4 scopes will it find subTitle attribute?
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
page

The other 3 wouldn't make sense.
 
What is that? Is that a mongol hoarde? Can we fend them off with this tiny ad?
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic