[Seasar-user:3569] backport175 を使用した validation について
[E-MAIL ADDRESS DELETED]
[E-MAIL ADDRESS DELETED]
2006年 4月 28日 (金) 12:11:02 JST
$B:4!9LZ$H?=$7$^$9!#(B
$B:#2s=i$a$F(Bseasar$B$rF3F~$7!"3+H/$r9T$C$F$$$^$9!#(B
backport175$B$r;HMQ$7$?(Bvalidation$B$r9T$$$?$$$N$G$9$,(B
$B2<5-$K5-=RCW$7$^$7$?-!!A-$$r<BAu$7$F$b(B
$B%(%i!<%a%C%;!<%8$,I=<($5$l$J$/$F:$$C$F$$$^$9!#(B
backport175$B$r;HMQ$7$F(Bvalidation$B$r9T$C$F$$$kJ}$,(B
$B$$$i$C$7$c$$$^$7$?$i!"$I$&$$$C$?@_Dj!&<BAu$,B-$j$J$$$N$+(B
$B$465<x4j$$$^$9!#(B
$B"'4D6-(B
$B!&(BJDK$B!'(B1.4.2_11
$B!&(BS2Container$B!'(B2.3.7
$B!&(BS2Dao$B!'(B1.0.32
$B!&(BS2Struts$B!'(B1.2.2
$B!&(BS2S2Struts-backport175$B!'(B1.2.0
=======================================================================
$B-!(Bstruts-config.xml$B$[E-MAIL ADDRESS DELETED](B
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property
property="pathnames"
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
</plug-in>
$B"((Baction$B$O!"(Bvalidate="true"$B$[E-MAIL ADDRESS DELETED](B
$B-"(BActionForm$B$N%;%C%?!<%a%=%C%I$K%"%N%F!<%7%g%s$r5-=R(B
public class AaaaDto implements Serializable
/**
* @org.seasar.struts.validator.annotation.backport175.Required
*/
public void setAaaa(String aaaa) {
this.aaaa = aaaa;
}
$B-#%"%W%j%1!<%7%g%s%W%m%Q%F%#$K%(%i!<%a%C%;!<%8$rDj5A(B
# -- standard errors --
errors.header=<UL>
errors.prefix=<LI>
errors.suffix=</LI>
errors.footer=</UL>
# -- validator --
errors.required={0} is required.
# -- validator message --
AaaaDto.aaaa=XXXXXXX
$B-$(BJSP$B$G%(%i!<%a%C%;!<%8$rI=<($9$k$h$&5-=R(B
<html:errors />
<html:text property="aaaa" size="20"/>
=======================================================================
$B0J>e$G$9$,!"59$7$/$*4j$$CW$7$^$9!#(B
Seasar-user メーリングリストの案内