Re: Rest-plugin with Spring

2009-10-19 Thread Antonius Ng
Hi Sayantan, Sure I can share it. I am not sure I am doing it the right way or not, but here it is. I created a new class that extends StrutsSpringObjectFactory: public class RestSpringObjectFactory extends StrutsSpringObjectFactory { ... Then I override the following method public Object build

Re: Rest-plugin with Spring

2009-10-18 Thread Sayantan Sinha
Hi Antonius, Thanks for your promp reply. Can you please share the code for the class RestSpringObjectFactory? Also, it would be great if you can share your applicationContext.xml (spring configuration) file. Also, please confirm is the spring injection working properly. Regards, Sayantan Ant

Re: Rest-plugin with Spring

2009-10-18 Thread Antonius Ng
Hi Sayantan, This is how I do it. In struts.xml, I add the following line: Cheers, Antonius On Sun, Oct 18, 2009 at 4:42 PM, Sayantan Sinha wrote: > > Hi, > > How do you make your application read this new class > RestSpringObjectFactory? > Thanks in advance. > > Regards, > Sayantan > > > Ant

Re: Rest-plugin with Spring

2009-10-18 Thread Sayantan Sinha
Hi, How do you make your application read this new class RestSpringObjectFactory? Thanks in advance. Regards, Sayantan Antonius Ng-2 wrote: > > Hi again, > > I solve this problem by writing a new class: RestSpringObjectFactory which > extends StrutsSpringObjectFactory. In that class, i overr

Re: Rest-plugin with Spring

2009-09-21 Thread Antonius Ng
Hi again, I solve this problem by writing a new class: RestSpringObjectFactory which extends StrutsSpringObjectFactory. In that class, i override the method buildBean(Class clazz, Map extraContext) to get bean from appContext whenever the class is my controller class. Cheers, Anton On Sat, Sep