Win a copy of Spring Boot in Practice this week in the Spring forum!
  • 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
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic