@Override public void doTag() throws JspException, IOException { addAttribute("field", field); addAttribute("attributeMetadata", persistentProperty); prepare(); PageContext pageContext = (PageContext) getJspContext(); try { pageContext.include(jspPath, true); } catch (ServletException e) { throw new JspException(e); } finally { pageContext.removeAttribute("field", REQUEST_SCOPE); pageContext.removeAttribute("attributeMetadata", REQUEST_SCOPE); } }
public void removePageAttribute(String name) { pageContext.removeAttribute(name); }