{"id":1413,"date":"2009-07-20T20:58:56","date_gmt":"2009-07-20T11:58:56","guid":{"rendered":"http:\/\/fukata.org\/?p=1413"},"modified":"2017-08-11T22:59:08","modified_gmt":"2017-08-11T22:59:08","slug":"struts2-chain-when-validate-error","status":"publish","type":"post","link":"https:\/\/blog.fukata.org\/archives\/1413\/","title":{"rendered":"[Struts2]validate\u30a8\u30e9\u30fc\u6642\u306echain\u306b\u3064\u3044\u3066"},"content":{"rendered":"
<\/a>\u73fe\u5728\u3001\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3057\u3066\u3044\u3066\u3001\u5165\u529b\u753b\u9762\u2192\u5165\u529b\u30a8\u30e9\u30fc\u2192\u5165\u529b\u753b\u9762\u307f\u305f\u3044\u306a\u9077\u79fb\u3067\u3001\u5165\u529b\u753b\u9762\u306b\u306f\u3001\u30b5\u30a4\u30c9\u30d0\u30fc\u306a\u3069\u306b\u5171\u901a\u9805\u76ee\u304c\u3042\u308b\u3093\u3067\u3059\u304c\u3001\u753b\u50cf\u306e\u3088\u3046\u306b\u3001\u300cArticleCreateAction\u300d\u3067\u5171\u901a\u9805\u76ee\u306b\u3064\u3044\u3066\u53d6\u5f97\u3057\u305f\u3044\u3068\u601d\u3063\u3066\u308b\u3093\u3067\u3059\u304c\u3001validate\u30e1\u30bd\u30c3\u30c9\u3067\u306e\u30a8\u30e9\u30fc\u6642\u306b\u306f\u3069\u3046\u3082chain\u306f\u3055\u308c\u308b\u3093\u3067\u3059\u304c\u3001execute\u30e1\u30bd\u30c3\u30c9\u306f\u5b9f\u884c\u3055\u308c\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n \u4eca\u306f\u4ed5\u65b9\u306a\u3044\u306e\u3067\u3001\u300cArticleCreateWithValidationAction\u300d\u306evalidate\u30e1\u30bd\u30c3\u30c9\u5185\u3067\u5171\u901a\u9805\u76ee\u306b\u3064\u3044\u3066\u3082\u53d6\u5f97\u3057\u3066\u3044\u308b\u3093\u3067\u3059\u3088\u306d\u3002\u3002\u3002\u4f55\u304b\u3046\u307e\u3044\u65b9\u6cd5\u306f\u306a\u3044\u3093\u3067\u3057\u3087\u3046\u304b\u306d\u3002<\/p>\n \u307e\u3041\u3001\u4eca\u4f5c\u3063\u3066\u3044\u308b\u30a2\u30d7\u30ea\u306f\u78ba\u8a8d\u753b\u9762\u3092\u4f5c\u6210\u3059\u308b\u306e\u306b\u624b\u9593\u304c\u304b\u304b\u308b\u306e\u3067\u3001javascript\u3067\u306e\u78ba\u8a8d\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u51fa\u3059\u3060\u3051\u306b\u3057\u3066\u3044\u308b\u3093\u3067\u3059\u3051\u3069\u3001\u5b9f\u969b\u306e\u696d\u52d9\u3067\u4f5c\u6210\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u30a2\u30d7\u30ea\u3067\u306f\u78ba\u8a8d\u753b\u9762\u3092\u3069\u3046\u3057\u3066\u3082\u4f5c\u6210\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u304b\u3089\u305d\u306e\u8fba\u306etips\u3082\u96c6\u3081\u305f\u3044\u3093\u3067\u3059\u3051\u3069\u306d\u3002<\/p>\n \u3042\u3068\u3001\u3042\u308c\u3060\u306a\u3041\u3001validate\u306b\u3064\u3044\u3066\u3082xml\u3067\u884c\u3046\u304b\u3001Action\u5185\u306evalidate\u30e1\u30bd\u30c3\u30c9\u3067\u884c\u3046\u304b\u3082\u7d71\u4e00\u3057\u305f\u65b9\u304c\u3044\u3044\u3093\u3060\u308d\u3046\u306a\u3068\u601d\u3046\u3002\u7c21\u5358\u306avalidate\u3060\u3051\u306a\u3089xml\u306e\u65b9\u304c\u7c21\u5358\u306a\u3093\u3067\u3059\u3051\u3069\u3001DB\u304c\u7d61\u3093\u3067\u304f\u308b\u3068\u3069\u3046\u3057\u3066\u3082validate\u30e1\u30bd\u30c3\u30c9\u3067\u5b9f\u88c5\u3057\u305f\u65b9\u304c\u7c21\u5358\u306b\u601d\u3048\u308b\u3002\u3082\u3057\u304b\u3059\u308b\u3068\u30ab\u30b9\u30bf\u30e0Validate XML\u3092\u4f5c\u6210\u3059\u308c\u3070\u540c\u3058\u3088\u3046\u306b\u6bd4\u8f03\u7684\u7c21\u5358\u306b\u8a18\u8ff0\u51fa\u6765\u308b\u306e\u304b\u3082\u3057\u308c\u306a\u3044\u3067\u3059\u3051\u3069\u3002\u3053\u306e\u8fba\u3082\u3082\u3046\u5c11\u3057\u8abf\u3079\u305f\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u73fe\u5728\u3001\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3057\u3066\u3044\u3066\u3001\u5165\u529b\u753b\u9762\u2192\u5165\u529b\u30a8\u30e9\u30fc\u2192\u5165\u529b\u753b\u9762\u307f\u305f\u3044\u306a\u9077\u79fb\u3067\u3001\u5165\u529b\u753b\u9762\u306b\u306f\u3001\u30b5\u30a4\u30c9\u30d0\u30fc\u306a\u3069\u306b\u5171\u901a\u9805\u76ee\u304c\u3042\u308b\u3093\u3067\u3059\u304c\u3001\u753b\u50cf\u306e\u3088\u3046\u306b\u3001\u300cArticleCreateAction\u300d\u3067\u5171\u901a\u9805\u76ee\u306b\u3064\u3044 … \u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":9223372036854775807,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1980],"tags":[346],"_links":{"self":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/1413"}],"collection":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/comments?post=1413"}],"version-history":[{"count":0,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/1413\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media\/9223372036854775807"}],"wp:attachment":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media?parent=1413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/categories?post=1413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/tags?post=1413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}