Summary: | Generator's JspFragment.invoke implementation does not reset ELContext[JspContext.class] | ||
---|---|---|---|
Product: | Tomcat 7 | Reporter: | Karl von Randow <karl> |
Component: | Jasper | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 7.0.26 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Attachments: | Patch to correct the putting/resetting of the JspContext ELContext attribute |
Description
Karl von Randow
2012-02-27 00:46:22 UTC
If you have a working solution, care to provide a patch? Created attachment 28437 [details]
Patch to correct the putting/resetting of the JspContext ELContext attribute
Sorry about that, I wasn't 100% sure that the solution was the right way to do it. Specifically that it is appropriate to remove the resetting of the JspContext attribute from the visit(Node.InvokeAction n) method.
However the visit(Node.InvokeAction n) doesn't set the JspContext attribute, so it probably makes sense that it doesn't reset it. The set and reset is now in the one place in FragmentHelperClass.generatePostamble().
Thanks for the patch. This has been fixed in trunk and 7.0.x and will be included in 7.0.27 onwards. |