@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);
   }
 }
예제 #2
0
 public void removePageAttribute(String name) {
   pageContext.removeAttribute(name);
 }