[Seasar-user:11295] [S2Struts]メソッドごとのValidation:ActionFormについて
Ogino Yosihko
[E-MAIL ADDRESS DELETED]
2007年 10月 26日 (金) 12:08:45 JST
$B$*@$OC$K$J$C$F$*$j$^$9!#(B
$B2.Ln$H?=$7$^$9!#(B
$B0JA0!"%a%=%C%I$4$H$N(BValidation$B$K$D$$$F3NG'$r$H$i$;$F$$$?$@$-$^$7$?!#(B
$B%a!<%j%s%0%j%9%H$NJ]B8=q8K$G$O!"J8;z2=$1$K$J$C$F$$$^$9$,!"(B
s2Struts$B%?%0!"(BStruts$B$N(Bvalidation.xml$B$r;H$C$F!"(B $B%a%=%C%I$4$H$N(BValidation$B$r(B
$B0J2<$NJ}K!$G!"$G$-$k$3$H$r3NG'CW$7$^$7$?!#(B
$B#1!%(BActionForm $B!!(B
$B-!(Borg.apache.struts.validator.ValidatorForm $B$r7Q>5$7$?(BActionForm$B$r:[E-MAIL ADDRESS DELETED](B $B!!(B
$B-"(Bcommand$B%W%m%Q%F%#$rDj5A(B $B!!(B
$B-#(BgetValidationKey()$B%a%=%C%I$NDI2C(B
$B#2!%(BAction$BDj?t%"%N%F!<%7%g%s$[E-MAIL ADDRESS DELETED](B
$B!!!!(Bpublic static final String ACTION = "name=departmentForm,scope=request,
parameter=command,validate=true";
$B#3!%(Bvalidation.xml$B$[E-MAIL ADDRESS DELETED](B $B!!!!(BForm$BL>$N8e$K%\%?%sL>$[E-MAIL ADDRESS DELETED](B
$B!!!!(B<form name="departmentForm_Search">
.......
</form>
$B!!!!(B<form name="departmentForm_Update">
.......
</form>
$B#4!%(BJSP
$B!!!!(B<s2struts:submit action="#{departmentAction.goSearch}"
property="command" >
$B!!!!!!!!!!!!!!!!(BSearch</s2struts:submit>
$B!!!!(B<s2struts:submit action="#{departmentAction.goUpdate}"
property="command" >
$B!!!!!!!!!!!!!!!!(BUpdate</s2struts:submit>
$B>e5-$N#1!%(BActionForm$B$K$D$$$F$G$9$,!"(B
Struts$B$N(BValidatorForm$B$r7Q>5$9$k(BActionForm$B$G$O$J$/!"(B
POJO$B$N(BActionForm$B$G<B8=$G$-$k$h$&$K$7$F$$$?$@$1$J$$$G$7$g$&$+!#(B
$B2?B4$h$m$7$/$*4j$$CW$7$^$9!#(B
_________________________________________________________________
$BD65.=E!*:n2H(B $BB<>eN6$H6C$-$NBgJ*BPCL$,<B8=!#BPCL$N1GA|$rL5NAG[?.Cf!*(B
http://video.msn.co.jp/rvr/default.htm
Seasar-user メーリングリストの案内