org.apache.struts.taglib.html
クラス BaseTag

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

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

Renders an HTML element with an href attribute pointing to the absolute location of the enclosing JSP page. This tag is only valid when nested inside a head tag body. The presence of this tag allows the browser to resolve relative URL's to images, CSS stylesheets and other resources in a manner independent of the URL used to call the ActionServlet.

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

フィールドの概要
protected static MessageResources messages
          The message resources for this package.
protected  java.lang.String server
          The server name to use instead of request.getServerName().
protected  java.lang.String target
          The target window for this base reference.
 
クラス 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
 
コンストラクタの概要
BaseTag()
           
 
メソッドの概要
 int doStartTag()
          Process the start of this tag.
 java.lang.String getServer()
          Returns the server.
 java.lang.String getTarget()
           
protected  java.lang.String renderBaseElement(java.lang.String scheme, java.lang.String serverName, int port, java.lang.String uri)
          Render a fully formed HTML <base> element and return it as a String.
 void setServer(java.lang.String server)
          Sets the server.
 void setTarget(java.lang.String target)
           
 
クラス javax.servlet.jsp.tagext.TagSupport から継承したメソッド
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース javax.servlet.jsp.tagext.IterationTag から継承したメソッド
 

フィールドの詳細

messages

protected static MessageResources messages
The message resources for this package.


server

protected java.lang.String server
The server name to use instead of request.getServerName().


target

protected java.lang.String target
The target window for this base reference.

コンストラクタの詳細

BaseTag

public BaseTag()
メソッドの詳細

getTarget

public java.lang.String getTarget()

setTarget

public void setTarget(java.lang.String target)

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Process the start of this tag.

例外:
javax.servlet.jsp.JspException - if a JSP exception has occurred

renderBaseElement

protected java.lang.String renderBaseElement(java.lang.String scheme,
                                             java.lang.String serverName,
                                             int port,
                                             java.lang.String uri)
Render a fully formed HTML <base> element and return it as a String.

パラメータ:
scheme - The scheme used in the url (ie. http or https).
serverName -
port -
uri - The portion of the url from the protocol name up to the query string.
戻り値:
String An HTML <base> element.
導入されたバージョン:
Struts 1.1

getServer

public java.lang.String getServer()
Returns the server.

戻り値:
String

setServer

public void setServer(java.lang.String server)
Sets the server.

パラメータ:
server - The server to set


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