1 16 17 package org.apache.taglibs.jms; 18 19 import javax.servlet.jsp.JspException ; 20 import javax.servlet.jsp.tagext.BodyTagSupport ; 21 22 27 public abstract class AbstractBodyTag extends BodyTagSupport { 28 29 31 protected void handleException( Exception e ) throws JspException { 32 if ( e instanceof JspException ) { 33 throw (JspException ) e; 34 } 35 else { 36 pageContext.getServletContext().log( e.getMessage(), e ); 37 throw new JspException ( e.getMessage() ); 38 } 39 } 40 } 41 | Popular Tags |