Summary: | Problem with fmt:formatDate tag on large pages (in 1.0.3 actually) | ||
---|---|---|---|
Product: | Taglibs | Reporter: | Chris Mein (RBOS) <Christopher.MEIN> |
Component: | Standard Taglib | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 1.0.2 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All |
Description
Chris Mein (RBOS)
2003-09-02 17:18:05 UTC
The behavior of the formatting tags is in accordance with the JSTL spec. With respect to the following exception: "java.lang.IllegalStateException: Response is already committed!" the spec clearly states in section 8.4 that: "This assumes that the response is buffered with a big enough buffer size, since ServletResponse.setLocale() and ServletResponse.setContentType() must be called before ServletResponse.getWriter() in order for the specified locale or charset to affect the construction of the writer.(1) (1). It also assumes that the JSP container doesn't call getWriter() until it's about to flush the buffer. An errata has been published for the JSP 1.2 specification to clarify this." As you mentioned, you have to make sure that you have a big enough buffer, as well as verify that your container vendor complies with this errata of the JSP spec. Finally, the language regarding this whole issue as been clarified in JSTL 1.1 as follows: Summary: Response Encoding The way formatting actions influence the encoding of the response has been clarified in sections 8.4 and 8.10. Repeated calls to ServletResponse.setLocale() will affect the character encoding of the response only if it has not already been set explicitely. Please check the JSTL 1.1 spec for more details (http://java/sun/com/jstl) |