struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephan Schröder" <simon.v...@gmx.de>
Subject Re: Validate associate Map
Date Sun, 17 Aug 2008 14:44:38 GMT
i guess the short answer is: write it validateSave()-Method. The workflow interceptor should
only call it if "save" is the invoke method.

> > I have to write custom validation method where I iterate all
> > "PageText" class and validate it. I want to use validate() 
> > method from ActionSupport class but the method is invoke always.
> > I need invoke validator method only when is invoke method
> > save(); Is better resolution?
> 
> One option would be to read the documentation for the validation
> interceptor [1,2] and its superclass, MethodFilterInterceptor [3].
> 
> Dave
> 
> [1] Validation interceptor overview:
> http://struts.apache.org/2.x/docs/validation-interceptor.html
> 
> [2] ValidationInterceptor Javadocs:
> http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/validator/ValidationInterceptor.html
> 
> [3] MethodFilterInterceptor Javadocs:
> http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/interceptor/MethodFilterInterceptor.html
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org

-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx

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


Mime
View raw message