| |||||||
FRAMES NO FRAMES |
t:input/t:select/t:textarea タグで参照するフォームオブジェクトを指定します。
[1] action 属性を JSP 上で指定する (JSP) <t:form action="${contextPath}/foo/bar" value="${action}"> ... </t:form> (実行結果) <form action="/(contextPath)/foo/var"&> ... </form> [2] action 属性をクラス、メソッドで指定する (JSP) <t:form actionClass="com.example.action.FooAction" actionMethod="bar" value="${action}"> ... </t:form> (実行結果) <form action="/(contextPath)/foo/var" > ... </form> [3] プロトコル(HTTPS)を指定する (JSP) <t:form actionClass="com.example.action.FooAction" actionMethod="bar" value="${action}" protocol="https"> ... </t:form> (実行結果) <form action="https://www.example.com/(contextPath)/foo/bar" > ... </form>
Tag Information | |
Tag Class | org.seasar.cubby.tags.FormTag |
TagExtraInfo Class | None |
Body Content | JSP |
Display Name | None |
Attributes | ||||
Name | Required | Request-time | Type | Description |
value | true | true | java.lang.Object | フォームオブジェクトを指定します。 |
actionClass | false | true | java.lang.Class | アクションクラス、メソッドから action 属性を生成するためのアクションクラスを FQCN で指定します。 この属性を指定した場合は、必ず actionMethod 属性も指定してください。 JSP 上に action 属性が指定してあった場合はこの属性から生成した URL で上書きされます。 URL 埋め込みパラメータやクエリ文字列のパラメータが必要な場合は t:param タグをボディ部に指定してください。 指定方法は t:link タグと同様です。 |
actionMethod | false | true | java.lang.String | アクションクラス、メソッドから action 属性を生成するためのアクションメソッドを指定します。 この属性を指定した場合は、必ず actionClass 属性も指定してください。 |
encodeURL | false | true | java.lang.Boolean | 出力する URL を HttpServletResponse#encodeURL(String) でエンコードするかを指定します。デフォルトは true です。 |
protocol | false | true | java.lang.String | 出力する URL のプロトコルを指定します。主にhttps/httpの切り替えに使用します。 |
port | false | true | java.lang.Integer | 出力する URL のポートを指定します。 |
Variables | No Variables Defined. |
| |||||||
FRAMES NO FRAMES |