com.acsinet_solutions.cetia4.tags.support
Class LogConditionalTagSupport

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.jstl.core.ConditionalTagSupport
          extended by com.acsinet_solutions.cetia4.tags.support.LogConditionalTagSupport
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally
Direct Known Subclasses:
AbstractBlockConditionTag, IfMenuTag

public abstract class LogConditionalTagSupport
extends javax.servlet.jsp.jstl.core.ConditionalTagSupport
implements javax.servlet.jsp.tagext.TryCatchFinally

Extension of ConditionalTagSupport that includes exception handling, log handling, and special convenience methods.

Author:
Santiago Arriaga
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
LogConditionalTagSupport()
           
 
Method Summary
 void doCatch(java.lang.Throwable throwable)
           
 void doFinally()
           
protected  Configuration getConfiguration()
          Shortcut for the application-wide configuration object.
protected  java.util.Locale getLocale()
          Get the locale configured for the current application.
protected  org.apache.commons.logging.Log getLogger()
          Return the internal logger
protected  java.lang.String getPortalPath()
          Get the portal path if configured, or the context path if not.
protected  javax.servlet.http.HttpServletRequest getRequest()
          Convenience method
protected  javax.servlet.ServletContext getServletContext()
          Convenience method
protected  javax.servlet.http.HttpSession getSession()
          Convenience method
 
Methods inherited from class javax.servlet.jsp.jstl.core.ConditionalTagSupport
condition, doStartTag, release, setScope, setVar
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogConditionalTagSupport

public LogConditionalTagSupport()
Method Detail

doCatch

public void doCatch(java.lang.Throwable throwable)
             throws java.lang.Throwable
Specified by:
doCatch in interface javax.servlet.jsp.tagext.TryCatchFinally
Throws:
java.lang.Throwable

doFinally

public void doFinally()
Specified by:
doFinally in interface javax.servlet.jsp.tagext.TryCatchFinally

getLocale

protected final java.util.Locale getLocale()
Get the locale configured for the current application. JSTL locale configuration is used for this method.


getServletContext

protected final javax.servlet.ServletContext getServletContext()
Convenience method


getRequest

protected final javax.servlet.http.HttpServletRequest getRequest()
Convenience method


getSession

protected final javax.servlet.http.HttpSession getSession()
Convenience method


getLogger

protected final org.apache.commons.logging.Log getLogger()
Return the internal logger


getPortalPath

protected final java.lang.String getPortalPath()
Get the portal path if configured, or the context path if not.

See Also:
ControllerTools.getPortalPath(ServletContext,HttpServletRequest)

getConfiguration

protected final Configuration getConfiguration()
Shortcut for the application-wide configuration object.