Bug 43909 - EL EvaluationContext wrapper hides locale
EL EvaluationContext wrapper hides locale
Product: Tomcat 6
Classification: Unclassified
Component: Jasper
Other other
: P2 normal (vote)
: default
Assigned To: Tomcat Developers Mailing List
Depends on:
  Show dependency tree
Reported: 2007-11-19 23:06 UTC by Tuomas Kiviaho
Modified: 2007-12-28 13:19 UTC (History)
0 users

proper locale wrapping (738 bytes, patch)
2007-11-19 23:26 UTC, Tuomas Kiviaho
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tuomas Kiviaho 2007-11-19 23:06:25 UTC
org.apache.el.lang.EvaluationContext doesn't pass locale to the wrapped
ELContext as does org.apache.jasper.el.ELContextWrapper. This prohibits using of
the locale for it's original purpose.
Comment 1 Tuomas Kiviaho 2007-11-19 23:26:16 UTC
Created attachment 21157 [details]
proper locale wrapping

Here's a small patch to fix the problem but it would be more appropriate to
extract pure wrapper pattern implementation as it's own class.
Comment 2 Mark Thomas 2007-12-28 13:19:30 UTC
This has been fixed in svn and will be included in 6.0.16 onwards.