Forums Register Login

Tag Files : Tag Attributes Doubt !!!

+Pie Number of slices to send: Send
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 ?
+Pie Number of slices to send: Send
tag scope , once tag is closed its not available anymore
+Pie Number of slices to send: Send
 

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 Number of slices to send: Send
page

The other 3 wouldn't make sense.
I once met a man from Nantucket. He had a tiny ad
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 784 times.
Similar Threads
The attribute directive in tag files.
Tag file attribute not evaluated
Using Tag files with attributes on Tomcat
HFS page 567, question 18
Tag File error....
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 06:35:39.