Re: Rest-plugin with Spring

2009-10-19 Thread Antonius Ng
uration) file. > > Also, please confirm is the spring injection working properly. > > Regards, > Sayantan > > > Antonius Ng-2 wrote: > > > > Hi Sayantan, > > > > This is how I do it. In struts.xml, I add the following line: > > > value=

Re: Rest-plugin with Spring

2009-10-18 Thread Antonius Ng
> 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 override the method > > buildBean(Class clazz,

DefaultActionInvocation invokeAction

2009-09-24 Thread Antonius Ng
Hi all, The following code is extracted from xwork source DefaultActionInvocation.java and rest-plugin RestActionInvocation.java: protected String invokeAction(Object action, ActionConfig actionConfig) throws Exception { String methodName = proxy.getMethod(); if (LOG.isDebugEnabl

Re: Rest-plugin with Spring

2009-09-21 Thread Antonius Ng
19, 2009 at 5:11 PM, Antonius Ng wrote: > Hi all, > > I am currently developing an application using Struts 2.1.6 + rest-plugin + > spring-plugin + Spring 2.5.6. > > The problem that I am facing is that I have not found any way to initialize > the Controller Actions from Spr

Rest-plugin with Spring

2009-09-19 Thread Antonius Ng
Hi all, I am currently developing an application using Struts 2.1.6 + rest-plugin + spring-plugin + Spring 2.5.6. The problem that I am facing is that I have not found any way to initialize the Controller Actions from Spring, because the rest-plugin is built on the Convention Plugin for automatic