2009-04-02 requiredstring Struts2 Validation なにそれ? 入力チェックを行うバリデーション。 文字列がnullあるいは""だった場合にエラーメッセージを返します。 使用方法 基礎を参照。 messageタグのinnerHTMLはs:fielderrorタグで出力できます。 「Could not find action or result」というエラーが出る場合は、struts.xmlのresultタグのname属性"input"を追加すればOKです。 参考 http://tech.orz.at/index.php?cmd=read&page=Struts2%2FValidation#c788e9a3 Struts2を使ってみる