jp.terasoluna.fw.web.struts.taglib
クラス LinkTag

java.lang.Object
  上位を拡張 javax.servlet.jsp.tagext.TagSupport
      上位を拡張 javax.servlet.jsp.tagext.BodyTagSupport
          上位を拡張 org.apache.struts.taglib.html.BaseHandlerTag
              上位を拡張 org.apache.struts.taglib.html.LinkTag
                  上位を拡張 jp.terasoluna.fw.web.struts.taglib.LinkTag
すべての実装されたインタフェース:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class LinkTag
extends org.apache.struts.taglib.html.LinkTag

拡張 link タグ。

Struts の提供する <html:link> タグを拡張する。 機能として、アクション URL にキャッシュ避け用ランダム ID を追加する。 ネストされていないiterateTagの BODY内でLinkTagを使用するときのみ indexed属性、indexId属性が有効となる。


タグがサポートする属性

<html:link>タグのAPI を参照。


カスタムタグのスクリプティング変数

<html:link> タグの API を参照。


使用方法

<html:link> タグの API を参照。

関連項目:
直列化された形式

フィールドの概要
 
クラス org.apache.struts.taglib.html.LinkTag から継承されたフィールド
action, anchor, forward, href, indexId, linkName, messages, module, name, page, paramId, paramName, paramProperty, paramScope, property, scope, target, text, transaction, useLocalEncoding
 
クラス org.apache.struts.taglib.html.BaseHandlerTag から継承されたフィールド
accesskey, defaultLocale, doDisabled, doReadonly, indexed, tabindex
 
クラス javax.servlet.jsp.tagext.BodyTagSupport から継承されたフィールド
bodyContent
 
クラス javax.servlet.jsp.tagext.TagSupport から継承されたフィールド
id, pageContext
 
インタフェース javax.servlet.jsp.tagext.BodyTag から継承されたフィールド
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
インタフェース javax.servlet.jsp.tagext.IterationTag から継承されたフィールド
EVAL_BODY_AGAIN
 
インタフェース javax.servlet.jsp.tagext.Tag から継承されたフィールド
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
コンストラクタの概要
LinkTag()
           
 
メソッドの概要
protected  String calculateURL()
          URLにキャッシュ避け用ランダムIDを追加する。
 
クラス org.apache.struts.taglib.html.LinkTag から継承されたメソッド
doAfterBody, doEndTag, doStartTag, getAction, getAnchor, getForward, getHref, getIndexId, getLinkName, getModule, getName, getPage, getParamId, getParamName, getParamProperty, getParamScope, getProperty, getScope, getTarget, getTransaction, isUseLocalEncoding, release, setAction, setAnchor, setForward, setHref, setIndexId, setLinkName, setModule, setName, setPage, setParamId, setParamName, setParamProperty, setParamScope, setProperty, setScope, setTarget, setTransaction, setUseLocalEncoding
 
クラス org.apache.struts.taglib.html.BaseHandlerTag から継承されたメソッド
doErrorsExist, getAccesskey, getAlt, getAltKey, getBundle, getDisabled, getElementClose, getErrorKey, getErrorStyle, getErrorStyleClass, getErrorStyleId, getIndexed, getIndexValue, getLocale, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getReadonly, getStyle, getStyleClass, getStyleId, getTabindex, getTitle, getTitleKey, isXhtml, lookupProperty, message, prepareAttribute, prepareEventHandlers, prepareFocusEvents, prepareIndex, prepareKeyEvents, prepareMouseEvents, prepareName, prepareOtherAttributes, prepareStyles, prepareTextEvents, setAccesskey, setAlt, setAltKey, setBundle, setDisabled, setErrorKey, setErrorStyle, setErrorStyleClass, setErrorStyleId, setIndexed, setLocale, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleClass, setStyleId, setTabindex, setTitle, setTitleKey
 
クラス javax.servlet.jsp.tagext.BodyTagSupport から継承されたメソッド
doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
クラス javax.servlet.jsp.tagext.TagSupport から継承されたメソッド
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.Tag から継承されたメソッド
getParent, setPageContext, setParent
 

コンストラクタの詳細

LinkTag

public LinkTag()
メソッドの詳細

calculateURL

protected String calculateURL()
                       throws javax.servlet.jsp.JspException

URLにキャッシュ避け用ランダムIDを追加する。

ホットスポットがないため、Struts 1.2.4LinkTag.calculate() のコードをコピーして変更している。 Struts のバージョンを変更した場合は 見直しが必要となるので注意すること。

オーバーライド:
クラス org.apache.struts.taglib.html.LinkTag 内の calculateURL
戻り値:
処理制御指示
例外:
javax.servlet.jsp.JspException - エラーが発生したとき


Copyright © 2012. All Rights Reserved.