org.apache.struts.taglib.bean
クラス IncludeTag

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

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

Define the contents of a specified intra-application request as a page scope attribute of type java.lang.String. If the current request is part of a session, the session identifier will be included in the generated request, so it will be part of the same session.

FIXME: In a servlet 2.3 environment, we can use a wrapped response passed to RequestDispatcher.include().

バージョン:
$Revision: 1.1 $ $Date: 2004/10/20 03:26:42 $
関連項目:
直列化された形式

フィールドの概要
protected  java.lang.String anchor
          The anchor to be added to the end of the generated hyperlink.
protected static int BUFFER_SIZE
          Buffer size to use when reading the input stream.
protected  java.lang.String forward
          The name of the global ActionForward that contains a path to our requested resource.
protected  java.lang.String href
          The absolute URL to the resource to be included.
protected  java.lang.String id
          The name of the scripting variable that will be exposed as a page scope attribute.
protected static MessageResources messages
          The message resources for this package.
protected  java.lang.String page
          The context-relative URI of the page or servlet to be included.
protected  boolean transaction
          Include transaction token (if any) in the hyperlink?
protected  boolean useLocalEncoding
           
 
クラス javax.servlet.jsp.tagext.TagSupport から継承したフィールド
pageContext
 
インタフェース javax.servlet.jsp.tagext.IterationTag から継承したフィールド
EVAL_BODY_AGAIN
 
インタフェース javax.servlet.jsp.tagext.Tag から継承したフィールド
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
コンストラクタの概要
IncludeTag()
           
 
メソッドの概要
protected  void addCookie(java.net.URLConnection conn, java.lang.String urlString, javax.servlet.http.HttpServletRequest request)
          Add a session id cookie if appropriate.
 int doStartTag()
          Define the contents returned for the specified resource as a page scope attribute.
 java.lang.String getAnchor()
           
 java.lang.String getForward()
           
 java.lang.String getHref()
           
 java.lang.String getId()
           
 java.lang.String getPage()
           
 boolean getTransaction()
           
 boolean isUseLocalEncoding()
           
 void release()
          Release all allocated resources.
 void setAnchor(java.lang.String anchor)
           
 void setForward(java.lang.String forward)
           
 void setHref(java.lang.String href)
           
 void setId(java.lang.String id)
           
 void setName(java.lang.String name)
          推奨されていません。 use setPage(String) instead
 void setPage(java.lang.String page)
           
 void setTransaction(boolean transaction)
           
 void setUseLocalEncoding(boolean b)
           
 
クラス javax.servlet.jsp.tagext.TagSupport から継承したメソッド
doAfterBody, doEndTag, findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース javax.servlet.jsp.tagext.IterationTag から継承したメソッド
 

フィールドの詳細

BUFFER_SIZE

protected static final int BUFFER_SIZE
Buffer size to use when reading the input stream.

関連項目:
定数フィールド値

anchor

protected java.lang.String anchor
The anchor to be added to the end of the generated hyperlink.


forward

protected java.lang.String forward
The name of the global ActionForward that contains a path to our requested resource.


href

protected java.lang.String href
The absolute URL to the resource to be included.


id

protected java.lang.String id
The name of the scripting variable that will be exposed as a page scope attribute.


messages

protected static MessageResources messages
The message resources for this package.


page

protected java.lang.String page
The context-relative URI of the page or servlet to be included.


transaction

protected boolean transaction
Include transaction token (if any) in the hyperlink?


useLocalEncoding

protected boolean useLocalEncoding
コンストラクタの詳細

IncludeTag

public IncludeTag()
メソッドの詳細

getAnchor

public java.lang.String getAnchor()

setAnchor

public void setAnchor(java.lang.String anchor)

getForward

public java.lang.String getForward()

setForward

public void setForward(java.lang.String forward)

getHref

public java.lang.String getHref()

setHref

public void setHref(java.lang.String href)

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)

setName

public void setName(java.lang.String name)
推奨されていません。 use setPage(String) instead

Deprecated method to set the "name" attribute, which has been replaced by the "page" attribute.


getPage

public java.lang.String getPage()

setPage

public void setPage(java.lang.String page)

getTransaction

public boolean getTransaction()

setTransaction

public void setTransaction(boolean transaction)

isUseLocalEncoding

public boolean isUseLocalEncoding()

setUseLocalEncoding

public void setUseLocalEncoding(boolean b)

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Define the contents returned for the specified resource as a page scope attribute.

例外:
javax.servlet.jsp.JspException - if a JSP error occurs

addCookie

protected void addCookie(java.net.URLConnection conn,
                         java.lang.String urlString,
                         javax.servlet.http.HttpServletRequest request)
Add a session id cookie if appropriate. Can be overloaded to support a cluster.

パラメータ:
conn -
urlString -
request -
導入されたバージョン:
Struts 1.2.0

release

public void release()
Release all allocated resources.



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