https://issues.apache.org/bugzilla/show_bug.cgi?id=46339





--- Comment #8 from Kin-Man Chung <kin-man.ch...@sun.com>  2009-01-08 16:44:06 
PST ---
Konstantin,

Agreed with you on your reading of the spec on both points.  However, I think
the  current tag file (without your patch) can be made to work if we make the
following modification to the spec:

   Before the invocation of the fragment, AT_BEGIN and NESTED variables are
   copied from the current JspContext to the JspContext of the fragment
   (**instead** of the JspContext of the calling page or tag file).

The JspContext of the fragment and that of the calling page or tag file is the
same for first level calls, but would be different for 2nd level calls, when
the fragment is passed from the called tag file to another tag file.  It really
doesn't make sense to copy variables to the calling page before fragment
invocation when the fragment is not defined in the calling page.  Making such a
change would correct such oversight in the spec.  My patch reflects such a
change.

I'll make sure that such change gets into the JSP MR or next spec, if there is
no objections.

Your patched tag file works, because you are essentially chaining the fragment
invocations, so there is a lot of copying going on here.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to