You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/02/07 23:42:35 UTC
DO NOT REPLY [Bug 16224] -
Unable to use page scope in action
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16224>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16224
Unable to use page scope in <jsp:Body> action
jan.luehe@sun.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From jan.luehe@sun.com 2003-02-07 22:42 -------
Kevin,
what you are seeing is the expected behaviour.
Notice that a tag file has its own JspContext called a JSP Context
Wrapper, which is separate from the JSP context of the invoking page
(called the Invoking JSP Context).
Acording to JSP.8.3 ("Semantics of Tag Files") in JSP 2.0 PFD2, for
each invocation of 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.
If you want the scoped variable named "desc" to be available in the
Invoking JSP context after the tag invocation, you need to either provide a
'scope' attribute with value "request", "session", or "application" to
the <jsp:doBody> action in your tag file (as you did), or add this
variable declaration to your tag file:
<%@ variable name-given='desc' scope="AT_END" %>
in which case variable synchronization as described in JSP.8.9.1 will
take place.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org