com.macvu.tiles.taglib
Class CacheInsertTag.CacheInsertHandler

java.lang.Object
  extended by com.macvu.tiles.taglib.CacheInsertTag.CacheInsertHandler
Enclosing class:
CacheInsertTag

protected class CacheInsertTag.CacheInsertHandler
extends java.lang.Object


Field Summary
protected  org.apache.struts.tiles.Controller controller
           
protected  org.apache.struts.tiles.ComponentContext currentContext
           
protected  CacheComponentDefinition definition
           
protected  java.lang.String page
           
protected  java.lang.String role
           
protected  org.apache.struts.tiles.ComponentContext subCompContext
           
 
Constructor Summary
CacheInsertTag.CacheInsertHandler(CacheComponentDefinition definition, java.lang.String page, java.lang.String role, org.apache.struts.tiles.Controller controller)
          Constructor.
 
Method Summary
 int doEndTag()
          Include requested page.
 int doStartTag()
          Create a new empty context.
protected  void processException(java.lang.Throwable ex, java.lang.String msg)
          Process an exception.
 void putAttribute(java.lang.String name, java.lang.Object value)
          Add attribute to sub context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

definition

protected CacheComponentDefinition definition

page

protected java.lang.String page

currentContext

protected org.apache.struts.tiles.ComponentContext currentContext

subCompContext

protected org.apache.struts.tiles.ComponentContext subCompContext

role

protected java.lang.String role

controller

protected org.apache.struts.tiles.Controller controller
Constructor Detail

CacheInsertTag.CacheInsertHandler

public CacheInsertTag.CacheInsertHandler(CacheComponentDefinition definition,
                                         java.lang.String page,
                                         java.lang.String role,
                                         org.apache.struts.tiles.Controller controller)
Constructor. Create insert handler using Component definition.

Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Create a new empty context.

Throws:
javax.servlet.jsp.JspException

putAttribute

public void putAttribute(java.lang.String name,
                         java.lang.Object value)
Add attribute to sub context. Do nothing.


doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Include requested page.

Throws:
javax.servlet.jsp.JspException

processException

protected void processException(java.lang.Throwable ex,
                                java.lang.String msg)
                         throws javax.servlet.jsp.JspException
Process an exception. Depending of debug attribute, print full exception trace or only its message in output page.

Parameters:
ex - Exception
msg - An additional message to show in console and to propagate if we can't output exception.
Throws:
javax.servlet.jsp.JspException


Copyright © 2005 MacVu group. All Rights Reserved.