「Struts」html:formでフォームを出力する方法

属性
action
アクションマッピングで指定
enctype
「multipart/form-data」を指定
method
デフォルトpost
onsubmit
JavaScriptを指定
target
_blank 新しいウインドウ
_parent 親フレーム _self 自フレーム _topウィンドウ全体

サンプルコード

<html:form action="/login" onsubmit="check()">
 <html:text property="username" size="20" maxlength="20" />
 <html:submit property="submit" value="ログイン" />
</html:form>

 

Software

Posted by arkgame