[Seasar-user:13801] [SAStruts]@validate と@validatorに関しまして
[E-MAIL ADDRESS DELETED]
[E-MAIL ADDRESS DELETED]
2008年 4月 17日 (木) 09:01:10 JST
$B2,Fb$H?=$7$^$9!#(B
$B$*@$OC$K$J$j$^$9!#(B
@validate$B$H([E-MAIL ADDRESS DELETED]$B$K$D$$$F3NG'$r$5$;$F$$$?$@$-$?$$$H;W$$$^$9!#(B
$B%"%/%7%g%s$r2<5-$N$h$&$K$7$?$H$7$^$9!#(B
@Required
public String name;
// $B%P%j%G!<%?$H8!>Z%a%=%C%I$rN>J};XDj(B
@Execute(validate="validateHuga1",input="hoge.jsp")
public String huga()
{
return "huga.jsp";
}
// $B8!>Z%a%=%C%I(B1
public ActionMessages validateHuga1()
{
ActionMessages messages = new ActionMessages();
...
return messages;
}
// $B8!>Z%a%=%C%I(B2
public ActionMessages validateHuga2()
{
ActionMessages messages = new ActionMessages();
...
return messages;
}
$B$3$N>l9g!"(Bhuga$B%a%=%C%I$r<B9T$7$?>l9g$K$^$:%P%j%G!<%?!J%"%N%F!<%7%g%s!K$N(B
$B%A%'%C%/$,9T$o$l!"(B
OK$B$@$C$?>l9g$O8!>Z%a%=%C%I(BvalidateHuga1$B$N%A%'%C%/$,9T$o$l$^$7$?!#(B
$B!J(Bvalidator=false$B$r;XDj$7$J$$$J$$$N$G!"%P%j%G!<%?$,M-8z!K(B
$B%P%j%G!<%?$H8!>Z%a%=%C%I$rN>J};XDj$7$?>l9g$O(B
$B-!%P%j%G!<%?$K$h$k8!>Z!#(BNG$B$N>l9g$O$=$3$G=*N;!#(B
$B-"(BOK$B$@$C$?>l9g$OB3$$$F8!>Z%a%=%C%I$K$h$k8!>Z!#(BNG$B$N>l9g$O$=$3$G=*N;!#(B
$B$H$$$&G'<1$G$h$m$7$$$G$7$g$&$+!#(B
$B$=$3$GMWK>$r5s$2$5$;$F$$$?$@$-$?$$$N$G$9$,!"2<5-$N$h$&$J$3$H$O2DG=$G$7$g$&(B
$B$+!#(B
$B!&%P%j%G!<%?$H8!>Z%a%=%C%I$rN>J};XDj$7$?>l9g!"@h$K<B9T$9$k;EAH$_$rA*Br$G$-(B
$B$k!#(B
$B!&8!>Z%a%=%C%I$rJ#?t;XDj$G$-$k!#(B
$B$h$m$7$/$*4j$$$$$?$7$^$9!#(B
$B0J>e(B
Seasar-user メーリングリストの案内