struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jay Bose <digi9...@yahoo.com>
Subject Re: ActionValidatorManagerFactory
Date Wed, 07 May 2008 23:43:50 GMT
Jeromy, I looked into this a bit more and in the end, I was able to basically replace my
reference to  ActionValidatorManagerFactory with ActionValidatorManager.

I got the ActionValidatorManager instance set via the @Inject annotation.

Thanks for your response; it definitely set me in the right direction.


--- Jay Bose <digi9ten@yahoo.com> wrote:

> Jeromy, Thanks. 
> 
> I asked this in there, and received no response.
> I will look at the use of @Inject.
> 
> --- Jeromy Evans <jeromy.evans@blueskyminds.com.au> wrote:
> 
> > Hi Jay,
> > 
> > This question about the use of Struts 2 should be asked in the 
> > struts-users forum.
> > 
> > The quick answer is that XWork provides a DI mechanism.  The 
> > ValidatorFactory can be injected into a property or constructor using 
> > the @Inject annotation in objects created by the framework.  See the 
> > beans in struts-default.xml and the usages of @Inject, 
> > Container.getInstance and Container.inject for more information.
> > 
> > Jay Bose wrote:
> > > While I used WebWork-2, and the XWork associated with it, I was able to
> > programmatically
> > > retrieve action validation using the ActionValidatorManagerFactory.
> > >
> > > Now, it seems this class was removed.
> > >
> > > Any suggestions on how to programmatically get a ValidatorFactory instance?
> > >
> > >
> > >      
> > ____________________________________________________________________________________
> > > Be a better friend, newshound, and 
> > > know-it-all with Yahoo! Mobile.  Try it now. 
> > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> > >
> > > ---------------------------------------------------------------------
> > > 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
> > 
> > 
> 
> 
> 
>      
> ____________________________________________________________________________________
> Be a better friend, newshound, and 
> know-it-all with Yahoo! Mobile.  Try it now. 
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
> 
> 



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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


Mime
View raw message