org.apache.struts.taglib.template
クラス InsertTag

java.lang.Object
  拡張javax.servlet.jsp.tagext.TagSupport
      拡張org.apache.struts.taglib.template.InsertTag
すべての実装インタフェース:
javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

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

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.

バージョン:
$Revision: 1.1.1.1 $ $Date: 2003/03/11 13:38:38 $
作成者:
David Geary
関連項目:
直列化された形式

フィールドの概要
private  ContentMap map
          Each insert tag has a map of content.
private  java.lang.String template
          The URI of the template.
 
クラス javax.servlet.jsp.tagext.TagSupport から継承したフィールド
id, pageContext
 
インタフェース javax.servlet.jsp.tagext.IterationTag から継承したフィールド
EVAL_BODY_AGAIN
 
インタフェース javax.servlet.jsp.tagext.Tag から継承したフィールド
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
コンストラクタの概要
InsertTag()
           
 
メソッドの概要
 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.
 
クラス javax.servlet.jsp.tagext.TagSupport から継承したメソッド
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース javax.servlet.jsp.tagext.IterationTag から継承したメソッド
 

フィールドの詳細

map

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


template

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

コンストラクタの詳細

InsertTag

public InsertTag()
メソッドの詳細

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.

例外:
javax.servlet.jsp.JspException

doEndTag

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

例外:
javax.servlet.jsp.JspException

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.

パラメータ:
exception - Exception to be conditionally saved


このドキュメントは、Ja-Jakartaにより訳されました。コメントがある場合は、report@jajakarta.orgまでお願いします。
Copyright (C) 2000-2002 - Apache Software Foundation