pag 494, BANG section, says-...
All tag attributes have tag scope. That`s right, just the tag. Once the tag is closed, the tag attributtes go out of scope...
pag 567, question 18, says ...
Which are true abou the tag file model?
And one of the correct anwers is...
For each attribue declared and specified in a tag file, the container creates a page-scoped attribute with the same name
that's contradictory for me, can anybody help me please?
here is the explanation from the JSP 2.0 spec (page 174):
The tag file implementation must create and maintain a second instance of
JspContext called a JSP Context Wrapper. If the Invoking JSP Context is an
instance of PageContext, the JSP Context Wrapper must also be an instance of
PageContext. This wrapper must be returned when getJspContext() is called.
For each invocation to the tag, the JSP Context Wrapper must present a clean page scope containing no initial elements. All scopes other than the page scope must be identical to those in the Invoking JSP Context and must be modified accordingly when updates are made to those scopes in the JSP Context Wrapper. Any modifications to the page scope, however, must not affect the Invoking JSP Context.
...so there is a new JspContext (PageContext) for the tag file.