You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Jack <fo...@opensymphony.com> on 2008/09/09 06:02:19 UTC

Custom validation

hi

im using struts 2.0.9 ,
with eclipse and tomcat server .
im testing my custom validator .
but my custom validator not working  , instead default validation working .
I identified by the messages replied by the default validation not my messages set in the actionname-validation.xml file .

How to override default validation .
im sending my struts.xml file 
=============================
<struts>
<package name="default" extends="struts-default"> 
<action name="register" class="validation.sanal.register">
<result name="input">/pages/register.jsp</result>
<result name="error">/pages/register.jsp</result>
<result>/pages/success.jsp</result>
</action>
</package>
</struts>
============================
register is the action POJO .
i have register-validation.xml file to validate this action .
but messages differnt not given by me  .

can u please luk into this and give a suggectsio  how to overried default validation int struts2.0.9 .

thankfully
jack
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=452950&messageID=541478#541478


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Custom validation

Posted by Dave Newton <ne...@yahoo.com>.
Please ask this on the struts-user mailing list; this list is for the development of Struts itself.

Thanks,
Dave

--- On Tue, 9/9/08, Jack wrote:
> im using struts 2.0.9 ,
> with eclipse and tomcat server .
> im testing my custom validator .
> but my custom validator not working  , instead default
> validation working .
> I identified by the messages replied by the default
> validation not my messages set in the
> actionname-validation.xml file .
> 
> How to override default validation .
> im sending my struts.xml file 
> =============================
> <struts>
> <package name="default"
> extends="struts-default"> 
> <action name="register"
> class="validation.sanal.register">
> <result
> name="input">/pages/register.jsp</result>
> <result
> name="error">/pages/register.jsp</result>
> <result>/pages/success.jsp</result>
> </action>
> </package>
> </struts>
> ============================
> register is the action POJO .
> i have register-validation.xml file to validate this action
> .
> but messages differnt not given by me  .
> 
> can u please luk into this and give a suggectsio  how to
> overried default validation int struts2.0.9 .
> 
> thankfully
> jack
> ---------------------------------------------------------------------
> Posted via Jive Forums
> http://forums.opensymphony.com/thread.jspa?threadID=452950&messageID=541478#541478
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org