Re: [S2] ModelDriven, Preparable and SessionAware do not work with Spring

2007-03-12 Thread Shih Lee
Hi All, I managed to achieve what I wanted by using Struts 2 interceptor without having Spring aoping the action class through dynamic proxy. Here is the updated example.xml: http://struts.apache.org/dtds/struts-2.0.dtd";>

ModelDriven, Preparable and SessionAware do not work with Spring

2007-03-08 Thread Shih-gian Lee
Hi All, I think I know what is the trouble but am still not sure why is this a problem for Struts 2.0. I hope someone from the Struts community can help to shed some light. Or what is the recommended way of aoping the action class if spring proxy is not the route to go. The problem is when I us

Re: [S2] ModelDriven, Preparable and SessionAware do not work with Spring

2007-03-08 Thread Adam Ruggles
One quick thing I see wrong is you have singleton="false" that is a spring 1 attribute. Shih Lee wrote: Hi All, I think I know what is the trouble but am still not sure why is this a problem for Struts 2.0. I hope someone from the Struts community can help to shed some light. The problem is w

Re: [S2] ModelDriven, Preparable and SessionAware do not work with Spring

2007-03-08 Thread Shih Lee
Hi All, I think I know what is the trouble but am still not sure why is this a problem for Struts 2.0. I hope someone from the Struts community can help to shed some light. The problem is when I use "org.springframework.aop.framework.ProxyFactoryBean" to AOP the Action class. Once I remove the A

ModelDriven, Preparable and SessionAware do not work with Spring

2007-03-08 Thread Shih-gian Lee
Hi All, I have been playing with Struts 2.0 sample application, struts-blank, and integrates it with Spring 2.x. So far, I have not been having great success with it. I have followed all the steps needed to integrate Struts 2.0 w