リファレンス: Strutsページ構成(HTML)タグ・ライブラリ

タグ・ライブラリ構文

<%@ taglib uri="http://jakarta.apache.org/struts/tags-html-1.0" prefix="html" %>

構文の使用方法

イタリック・フォントで記載されているタグ属性には、ランタイム式を使用します。大カッコ([ ])内のタグ属性は、必須ではありません。タグ・ボディを指定する場合は、そのタグで受入れ可能なタイプのコンテンツ(JSPコンテンツ)で指定します。

タグ

名前 構文
base <html:base
      [target] />

button <html:button
      [accesskey]
      [alt]
      [altKey]
      [disabled]
      [indexed]
      [onblur]
      [onchange]
      [onclick]
      [ondblclick]
      [onfocus]
      [onkeydown]
      [onkeypress]
      [onkeyup]
      [onmousedown]
      [onmousemove]
      [onmouseout]
      [onmouseover]
      [onmouseup]
      property
      [style]
      [styleClass]
      [styleId]
      [tabindex]
      [title]
      [titleKey]
      [value] />

cancel <html:cancel
      [accesskey]
      [alt]
      [altKey]
      [disabled]
      [onblur]
      [onchange]
      [onclick]
      [ondblclick]
      [onfocus]
      [onkeydown]
      [onkeypress]
      [onkeyup]
      [onmousedown]
      [onmousemove]
      [onmouseout]
      [onmouseover]
      [onmouseup]
      [property]
      [style]
      [styleClass]
      [styleId]
      [tabindex]
      [title]
      [titleKey]
      [value] />

checkbox <html:checkbox
      [accesskey]
      [alt]
      [altKey]
      [disabled]
      [indexed]
      [name]
      [onblur]
      [onchange]
      [onclick]
      [ondblclick]
      [onfocus]
      [onkeydown]
      [onkeypress]
      [onkeyup]
      [onmousedown]
      [onmousemove]
      [onmouseout]
      [onmouseover]
      [onmouseup]
      property
      [style]
      [styleClass]
      [styleId]
      [tabindex]
      [title]
      [titleKey]
      [value] />

errors <html:errors
      [bundle]
      [locale]
      [name]
      [property] />

file <html:file
      [accesskey]
      [accept]
      [alt]
      [altKey]
      [disabled]
      [indexed]
      [maxlength]
      [name]
      [onblur]
      [onchange]
      [onclick]
      [ondblclick]
      [onfocus]
      [onkeydown]
      [onkeypress]
      [onkeyup]
      [onmousedown]
      [onmousemove]
      [onmouseout]
      [onmouseover]
      [onmouseup]
      property
      [size]
      [style]
      [styleClass]
      [styleId]
      [tabindex]
      [title]
      [titleKey]
      [value] />

form <html:form
      action
      [enctype]
      [focus]
      [method]
      [name]
      [onreset]
      [onsubmit]
      [scope]
      [style]
      [styleClass]
      [styleId]
      [target]
      [type] > JSP content </html:form>

frame <html:frame
      [anchor]
      [forward]
      [frameborder]
      [frameName]
      [href]
      [longdesc]
      [marginheight]
      [marginwidth]
      [name]
      [noresize]
      [page]
      [paramId]
      [paramName]
      [paramProperty]
      [paramScope]
      [property]
      [scope]
      [scrolling]
      [style]
      [styleClass]
      [styleId]
      [title]
      [titleKey]
      [transaction] />

hidden <html:hidden
      [accesskey]
      [alt]
      [altKey]
      [indexed]
      [name]
      [onblur]
      [onchange]
      [onclick]
      [ondblclick]
      [onfocus]
      [onkeydown]
      [onkeypress]
      [onkeyup]
      [onmousedown]
      [onmousemove]
      [onmouseout]
      [onmouseover]
      [onmouseup]
      property
      [style]
      [styleClass]
      [styleId]
      [title]
      [titleKey]
      [value]
      [write] />

html <html:html
      [ locale]
      [xhtml] > JSP content </html:html>

image <html:image
      [accesskey]
      [align]
      [alt]
      [altKey]
      [border]
      [bundle]
      [disabled]
      [indexed]
      [locale]
      [onblur]
      [onchange]
      [onclick]
      [ondblclick]
      [onfocus]
      [onkeydown]
      [onkeypress]
      [onkeyup]
      [onmousedown]
      [onmousemove]
      [onmouseout]
      [onmouseover]
      [onmouseup]
      [page]
      [pageKey]
      [property]
      [src]
      [srcKey]
      [style]
      [styleClass]
      [tabindex]
      [title]
      [titleKey]
      [value] />

img <html:img
      [accesskey]
      [align]
      [alt]
      [altKey]
      [border]
      [bundle]
      [height]
      [hspace]
      [imageName]
      [ismap]
      [locale]
      [lowsrc]
      [name]
      [onclick]
      [ondblclick]
      [onkeydown]
      [onkeypress]
      [onkeyup]
      [onmousedown]
      [onmousemove]
      [onmouseout]
      [onmouseover]
      [onmouseup]
      [paramId]
      [page]
      [pageKey]
      [paramName]
      [paramProperty]
      [paramScope]
      [property]
      [scope]
      [src]
      [srcKey]
      [style]
      [styleClass]
      [styleId]
      [title]
      [titleKey]
      [usemap]
      [vspace]
      [width] />

javascript <html:javascript
      [dynamicJavascript]
      [formName]
      [method]
      [page]
      [src]
      [staticJavascript] />

link <html:link
      [accesskey]
      [anchor]
      [forward]
      [href]
      [indexed]
      [indexId]
      [linkName]
      [name]
      [onblur]
      [onclick]
      [ondblclick]
      [onfocus]
      [onkeydown]
      [onkeypress]
      [onkeyup]
      [onmousedown]
      [onmousemove]
      [onmouseout]
      [onmouseover]
      [onmouseup]
      [page]
      [paramId]
      [paramName]
      [paramProperty]
      [paramScope]
      [property]
      [scope]
      [style]
      [styleClass]
      [styleId]
      [tabindex]
      [target]
      [title]
      [titleKey]
      [transaction] />

messages <html:messages
      id
      [bundle]
      [locale]
      [name]
      [property]
      [header]
      [footer]
      [message] > JSP content </html:messages>

multibox <html:multibox
      [accesskey]
      [alt]
      [altKey]
      [disabled]
      [name]
      [onblur]
      [onchange]
      [onclick]
      [ondblclick]
      [onfocus]
      [onkeydown]
      [onkeypress]
      [onkeyup]
      [onmousedown]
      [onmousemove]
      [onmouseout]
      [onmouseover]
      [onmouseup]
      property
      [style]
      [styleClass]
      [styleId]
      [tabindex]
      [title]
      [titleKey]
      [value] />

option <html:option
      [bundle]
      [disabled]
      [key]
      [locale]
      [style]
      [styleClass]
      value />

options <html:options
      [collection]
      [filter]
      [labelName]
      [labelProperty]
      [name]
      [property]
      [style]
      [styleClass] />

optionsCollection <html:optionsCollection
      [filter]
      [label]
      [name]
      property
      [style]
      [styleClass]
      [value] />

password <html:password
      [accesskey]
      [alt]
      [altKey]
      [disabled]
      [indexed]
      [maxlength]
      [name]
      [onblur]
      [onchange]
      [onclick]
      [ondblclick]
      [onfocus]
      [onkeydown]
      [onkeypress]
      [onkeyup]
      [onmousedown]
      [onmousemove]
      [onmouseout]
      [onmouseover]
      [onmouseup]
      property
      [readonly]
      [redisplay]
      [style]
      [styleClass]
      [styleId]
      [size]
      [tabindex]
      [title]
      [titleKey]
      [value] />

radio <html:radio
      [accesskey]
      [alt]
      [altKey]
      [disabled]
      [indexed]
      [name]
      [onblur]
      [onchange]
      [onclick]
      [ondblclick]
      [onfocus]
      [onkeydown]
      [onkeypress]
      [onkeyup]
      property
      [onmousedown]
      [style]
      [styleClass]
      [styleId]
      [tabindex]
      [title]
      [titleKey]
      value
      [idName] />

reset <html:reset
      [accesskey]
      [alt]
      [altKey]
      [disabled]
      [onblur]
      [onchange]
      [onclick]
      [ondblclick]
      [onfocus]
      [onkeydown]
      [onkeypress]
      [onkeyup]
      [onmousedown]
      [onmousemove]
      [onmouseout]
      [onmouseover]
      [onmouseup]
      [property]
      [style]
      [styleClass]
      [styleId]
      [tabindex]
      [title]
      [titleKey]
      [value] />

rewrite <html:rewrite
      [anchor]
      [forward]
      [href]
      [name]
      [page]
      [paramId]
      [paramName]
      [paramProperty]
      [paramScope]
      [property]
      [scope]
      [transaction] />

select <html:select
      [accesskey]
      [alt]
      [altKey]
      [disabled]
      [indexed]
      [multiple]
      [name]
      [onblur]
      [onchange]
      [onclick]
      [ondblclick]
      [onfocus]
      [onkeydown]
      [onkeypress]
      [onkeyup]
      [onmousedown]
      [onmousemove]
      [onmouseout]
      [onmouseover]
      [onmouseup]
      property
      [style]
      [styleClass]
      [styleId]
      [tabindex]
      [size]
      [title]
      [titleKey]
      [value] > JSP content </html:select>

submit <html:submit
      [accesskey]
      [alt]
      [altKey]
      [disabled]
      [indexed]
      [onblur]
      [onchange]
      [onclick]
      [ondblclick]
      [onfocus]
      [onkeydown]
      [onkeypress]
      [onkeyup]
      [onmousedown]
      [onmousemove]
      [onmouseout]
      [onmouseover]
      [onmouseup]
      [property]
      [style]
      [styleClass]
      [styleId]
      [tabindex]
      [title]
      [titleKey]
      [value] />

text <html:text
      [accesskey]
      [alt]
      [altKey]
      [disabled]
      [indexed]
      [maxlength]
      [name]
      [onblur]
      [onchange]
      [onclick]
      [ondblclick]
      [onfocus]
      [onkeydown]
      [onkeypress]
      [onkeyup]
      [onmousedown]
      [onmousemove]
      [onmouseout]
      [onmouseover]
      [onmouseup]
      property
      [readonly]
      [size]
      [style]
      [styleClass]
      [styleId]
      [tabindex]
      [title]
      [titleKey]
      [value] />

textarea <html:textarea
      [accesskey]
      [alt]
      [altKey]
      [cols]
      [disabled]
      [indexed]
      [name]
      [onblur]
      [onchange]
      [onclick]
      [ondblclick]
      [onfocus]
      [onkeydown]
      [onkeypress]
      [onkeyup]
      [onmousedown]
      [onmousemove]
      [onmouseout]
      [onmouseover]
      [onmouseup]
      property
      [readonly]
      [rows]
      [style]
      [styleClass]
      [styleId]
      [tabindex]
      [title]
      [titleKey]
      [value] />

xhtml <html:xhtml>

 


Strutsの使用

リファレンス: Strutsタグ・ライブラリ