$B$*@$OC$K$J$j$^$9!#@nF;$H?=$7$^$9!#(B<br><br>$B$A$g$C$HJ#;($J>r7o2<$G$N$*$+$7$JF0$-$,$"$k$N$GJs9p$5$;$F$$$?$@$-$^$9!#(B<br><br>$BA0Ds!'(B<br>$B#1!%(BSA-Struts1.0.4-sp2$B$r;HMQ$7$F$$$k(B<br>$B#2!%FH<+$N%"%N%F!<%7%g%s$r;HMQ$7$F$$$k!J(BForm$BFb$G;HMQ!K(B<br>$B#3!%$=$N%"%N%F!<%7%g%s$NI>2A$r(BActionCustomizer$B$r7Q>5$7$?(B<br>$B!!!!(BCustomizer$B$G9T$C$F$$$k!#!J(BsetupValidator$B$r(Boverride$B!K(B<br>
<br>$B$H8@$&>uBV$G!"(BHotDeploy$B%b!<%I$G(BAP$B%5!<%P5/F08e!"=i2s$N(Brequest$B;~$K(B<br>setupValidator$BFb$GFH<+%"%N%F!<%7%g%s$,G'<1$G$-$J$$!J(BgetAnnotation$B$,(Bnull$B!K(B<br>$B$H$J$C$F$7$^$$$^$9!#(B<br>$B#22sL\0J9_$OIaDL$KG'<1$G$-$F$$$^$9!#(B<br>$B%3!<%I$O0J2<$H$J$j$^$9!#(B<br><br>public class HogeActionCustomizer extends ActionCustomizer {<br>
$B!!!!(B@Override<br>$B!!!!(Bprotected void setupValidator(S2ActionMapping actionMapping,<br>$B!!!!!!(BS2ValidatorResources validatorResources) {<br>$B!!!!!!!!(Bsuper.setupValidator(actionMapping, validatorResources);<br>$B!!!!!!!!(Bfinal BeanDesc fbd = actionMapping.getActionFormBeanDesc();<br>
$B!!!!!!!!(Bfinal String formName = actionMapping.getName();<br>$B!!!!!!!!(Bfor (String methodName : actionMapping.getExecuteMethodNames()) {<br>$B!!!!!!!!!!!!(BForm form = validatorResources<br>$B!!!!!!!!!!!!!!!!(B.getForm(null, formName + &quot;_&quot; + methodName);<br>
$B!!!!!!!!!!!!(Bfor (Field field : (List&lt;Field&gt;)form.getFields()) {<br>$B!!!!!!!!!!!!!!!!(BString key = field.getKey();<br>$B!!!!!!!!!!!!!!!!(BField fld = fbd.getPropertyDesc(key).getField();&nbsp; // $B!y(B<br>$B!!!!!!!!!!!!!!!!(BHogeAnnotation ann=fld.getAnnotation(HogeAnnotation.class);<br>
$B!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'(B<br><br>$B$3$N;~!"#12sL\$N(Brequest$B;~$O!"(B<br>$B!!!&(BHogeAnnotation.class$B$N%/%i%9%m!<%@$O(BWebAppClassLoader<br>$B!!!&!y$G<hF@$7$?(Bfld$B$G(BgetAnnotations$B$7$?>l9g$N!"(BHogeAnnotation.class<br>$B!!!!$N%/%i%9%m!<%@$O(BHotDeployClassLoader<br>$B$H8@$&$N$,860x$J$N$G$9$,!"#22sL\0J9_$ON>J}$H$b(BWebAppClassLoader$B$H$J$j(B<br>
$B@5>o$KF0:n$7$^$9!#(B<br><br>$B0l1~!"(Bconvention.dicon$B$G!"%"%N%F!<%7%g%s$NG[CV%Q%C%1!<%8$r(BaddIgnorePackageName<br>$B$KDI2C$9$l$P2sHr$G$-$k$N$G$9$,!"$b$&>/$7@vN}$5$l$?2r7hJ}K!$O(B<br>$B$4$6$$$^$;$s$G$7$g$&$+!)(B<br><br>$B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B<br><br>