struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eduard Neuwirt <eduard.neuw...@googlemail.com>
Subject Re: how to access spring beans from inside a custom validator
Date Mon, 01 Nov 2010 08:17:24 GMT
Hello Jake,

It is simple.
Use struts/spring plug in.
Declare your bean within your validator and let spring inject your 
validator.

That's all

Regards
Eduard
P.S.: Do not forget to define the corresponding setter method for injection

Am 01.11.2010 08:37, schrieb Jake Vang:
> i have a custom field validator that extends FieldValidatorSupport.
> inside this class, i need to access some beans as defined in
> applicationContext.xml by Spring. how do i access the spring managed
> beans? any help is appreciated.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>

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


Mime
View raw message