If an attribute is not declared using the attribute directive where will it be created tagScope or in the including page's pageScope ?
if it is declared using an attribute directive which scope is it attached to ?
my problem is does the tag file have its own page scope or is it the including file's page scope. Because all tag attributes go out of scope when the tag completes how can that happen if its an attribute bound to the including file's page scope ?
Here 'subTitle' will not be visible in jsp file. The attribute 'subTilte' will be set in tag file with page scope. It will visible to only sri.tag file.
If you see the generated source file it will be clear.
The variable directive does show up on my Enthuware SCWCD mock exams.
Here's another example for people to use (this one uses the name-from-attribute and scope of "AT_BEGIN")
The <@ variable name-from-attribute="var" scope="AT_BEGIN" alias="yearBorn" %> means when the tag is called the value for the var attribute will be the name of the variable to set in the calling page. The alias="yearBorn" means in the tag file whatever value is given to yearBorn will be the value given to the var attribute's value in the calling page (in my example the var="brithYear".
The scope="AT_BEGIN" means that the birthYear value will be available from the beginning of the call to the tag file on through the rest of the calling page.