NMW Email Taglib Reference

JSP taglib encapsulating the JavaMail API.

This is the scriptless implementation based on javax.servlet.jsp.tagext.SimpleTagSupport. For compatibility with legacy applications that use JSP scriptlets, please use NMW Email Taglib Reference (Legacy).

Both implementations are interoperable and may be used simultaneously under different prefixes.


The structure of the tags matches that of the underlying JavaMail API with the following mapping:

The nesting allowed is:

* indicates zero or more uses allowed
? indicates zero or one use allowed
+ indicates one or more uses required
! indicates exactly one use required


This taglib is part of an extensible suite of interoperable, context-aware, auto-encoding taglibs. All auto-encoding tags generate correct output for their context, provide context information for nested tags, and validate the output of nested tags. For example, <ao:message> within <email:subject> will write its output encoded as TEXT, while within <email:content> (of type "text/html") will write its output encoded as XHTML.

This suite includes, but is not limited to:

Usage

Standard Syntax

<%@ taglib prefix="email" uri="https://oss.newmediaworks.com/email-taglib/" %>

XML Syntax

<anyxmlelement xmlns:email="https://oss.newmediaworks.com/email-taglib/" />

Tag Library Information

Display Name: NMW Email Taglib
Version: 2.1.0
Short Name: email
URI: https://oss.newmediaworks.com/email-taglib/