AO Encoding Taglib Changelog

ao-encoding-taglib-1.0.1

Release Notes

  • Attribute setters now throw IllegalArgumentException instead of JspTagException.

ao-encoding-taglib-1.0.0

Release Notes

  • New project for character encoding in JSP split from AO Taglib.
  • Added alternate implementation compatible with legacy JSP that use scriptlets.
  • Added tags to fill-out all the currently supported media types:
    1. <encoding:javascript>
    2. <encoding:json>
    3. <encoding:ldJson>
    4. <encoding:url>
  • Now registering exception types for use with Throwables.newSurrogate(…) that supports creating new instances of throwables in order to have caller stack trace. When wrapped, the original throwable is the cause of the new throwable. When not wrapped, the original throwable is used directly and caller stack trace is lost.

    This is used to maintain exception types and states across thread boundaries, such as when an exception cause is obtained from an ExecutionException.

  • New tag <encoding:encoding> that has a type defined in its type attribute.
  • EncodingNullTag now sets MediaType.TEXT context before invoking the JSP body. This means nested tags that attempt to produce valid output will not be limited by the parent encoding context of the tag.
  • Cleaned-up use of JspTagException versus JspException. Generally, methods declare throws JspException while actually throwing instances of JspTagException. The exceptions to this are attribute setters and private implementation methods that both declare and throw JspTagException.