$B@hF|$O$"$j$,$H$&$4$6$$$^$7$?!#EDCf$G$9!#(B<br><br>$B2<5-$N%3!<%I$N$h$&$K(BAction$B%a%=%C%IFb$GJL$N(BAction$B%a%=%C%I$r8F$S=P$9$H!"(B<br>edit$B%a%=%C%I$N(BValidation$B$K2C$($F!"(Btop$B%a%=%C%I8F$S=P$7;~$K$bF1$8(BValidation<br>$B$,8F$S=P$5$l$F$7$^$$$^$9!#(B<br>(top$B%a%=%C%I$G$O(BValidation$B$N@_Dj$O$5$l$F$$$^$;$s!K(B<br>token$B$r;H$C$F$$$k>l9g$KLdBj$,$*$-$F!"(B<br>2$BEY(Bvalidation$B$,<B9T$5$l$F$7$^$&$?$a$K(Btoken$B%(%i!<$K$J$C$F$7$^$$$^$9!#(B<br>
<br>$B6&DL$N%Z!<%8$KHt$P$7$?$$>l9g$J$I!"(BAction$B%a%=%C%IFb$GJL$N(BAction$B%a%=%C%I$r(B<br>$B8F$S=P$;$k$HJXMx$@$H;W$&$N$G!"8!F$$h$m$7$/$*4j$$$7$^$9!#(B<br><br>public ValidationRules validation = new DefaultValidationRules(&quot;hoge.&quot;) {<br>&nbsp;&nbsp;&nbsp; @Override<br>&nbsp;&nbsp;&nbsp; public void initialize() {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; add(&quot;comment&quot;, new RequiredValidator() , new MaxLengthValidator(1024));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; add(&quot;cubby.token&quot;, new TokenValidator());<br>&nbsp;&nbsp;&nbsp; }<br>};<br><br><br>@Path(&quot;edit&quot;)<br>@Validation(rules = &quot;validation&quot;, errorPage = &quot;form.jsp&quot;)<br>
public ActionResult edit() {<br>&nbsp;&nbsp;&nbsp; // $B=hM}>JN,(B<br>&nbsp;&nbsp;&nbsp; return top();<br>}<br><br><br>@Path(&quot;/&quot;)<br>public ActionResult top() {<br>&nbsp;&nbsp;&nbsp; // $B=hM}>JN,(B<br>&nbsp;&nbsp;&nbsp; return new Forward(&quot;index.jsp&quot;);<br>}<br><br><br>--<br>Hirokazu Tanaka<br>