org.apache.struts.taglib.template
Class InsertTag

org.apache.struts.taglib.template.InsertTag

public class InsertTag

This is the tag handler for <template:insert>, which includes a template. The tag's body content consists of <template:put> tags, which are accessed by <template:get> in the template.

Version:
$Revision: 1.8 $ $Date: 2001/04/29 05:34:49 $
Author:
David Geary

Field Summary
private  ContentMap map
          Each insert tag has a map of content.
private  java.lang.String template
          The URI of the template.
 
Constructor Summary
InsertTag()
           
 
Method Summary
 int doEndTag()
          Process the end tag by including the template.
 int doStartTag()
          Process the start tag by pushing this tag's map onto the content map stack.
 ContentMap getContentMap()
          Get the map attribute.
 java.lang.String getTemplate()
          Get the template attribute.
 void put(java.lang.String name, Content content)
          This method is a convenience for <template:put> tags for putting content into the map.
 void release()
          Reset member values for reuse.
private  void saveException(java.lang.Throwable exception)
          Save the specified exception in request scope if there is not already one present.
 void setTemplate(java.lang.String template)
          Set the template attribute.
 

Field Detail

map

private ContentMap map
Each insert tag has a map of content.

template

private java.lang.String template
The URI of the template.
Constructor Detail

InsertTag

public InsertTag()
Method Detail

setTemplate

public void setTemplate(java.lang.String template)
Set the template attribute.

getTemplate

public java.lang.String getTemplate()
Get the template attribute.

getContentMap

public ContentMap getContentMap()
Get the map attribute.

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Process the start tag by pushing this tag's map onto the content map stack. See org.apache.struts.taglib.template.util.ContentMapStack.

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Process the end tag by including the template.

put

public void put(java.lang.String name,
                Content content)
This method is a convenience for <template:put> tags for putting content into the map.

release

public void release()
Reset member values for reuse. This method calls super.release(), which invokes TagSupport.release(), which typically does nothing.

saveException

private void saveException(java.lang.Throwable exception)
Save the specified exception in request scope if there is not already one present.
Parameters:
exception - Exception to be conditionally saved


Copyright © 2000-2002 - Apache Software Foundation