* Tests a single error in errors list, with the "header" and "footer"
* resource set to non-empty strings.
*/
public void testHeaderFooter()
throws ServletException, JspException {
HashMapMessageResources messageResources = new HashMapMessageResources(
null, null, true);
messageResources.addMessage("error.misc", XXX_VALUE);
messageResources.addMessage("errors.header", HEADER_VALUE);
messageResources.addMessage("errors.footer", FOOTER_VALUE);
String bundle = elErrorsTag.getBundle();
if (bundle == null)
bundle = Action.MESSAGES_KEY;
pageContext.setAttribute(bundle, messageResources,
PageContext.APPLICATION_SCOPE);