net.ontopia.topicmaps.nav.taglibs.template
Class InsertTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by net.ontopia.topicmaps.nav.taglibs.template.InsertTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class InsertTag
extends javax.servlet.jsp.tagext.TagSupport

INTERNAL: Defines the template JSP to forward the request to, once all of the PutTag strings have been stored.

Example

<template:insert template='/views/template.jsp'>

See Also:
Serialized Form

Field Summary
static String TEMPL_STACK_KEY
           
static String VIEW_PLACEHOLDER
           
 
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
InsertTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 Stack getStack()
           
 void setTemplate(String templateString)
          Sets (according to attribute 'template') a path to the template page.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEMPL_STACK_KEY

public static final String TEMPL_STACK_KEY
See Also:
Constant Field Values

VIEW_PLACEHOLDER

public static final String VIEW_PLACEHOLDER
See Also:
Constant Field Values
Constructor Detail

InsertTag

public InsertTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException

getStack

public Stack getStack()

setTemplate

public void setTemplate(String templateString)
Sets (according to attribute 'template') a path to the template page.

Note: You can use a special placeholder %view% if you want to insert the name of the current view of the user session. This is a work-around, because JSP does not allow you to use a custom tag inside another custom tag



Copyright © 2000-2012 Ontopia.