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 use "
org.springframework.aop.framework.ProxyFactoryBean" to AOP the Action class.
Once I remove the AOP piece such as the following, everything work just
fine:

<!--<bean id="Menu" class="
org.springframework.aop.framework.ProxyFactoryBean">
               <property name="proxyInterfaces">
                       <value>example.IMenu</value>
               </property>
               <property name="interceptorNames">
                       <list>
                               <value>timeLoggingAdvisor</value>
                       </list>
               </property>
               <property name="target">
                       <ref local="MenuTarget"/>
               </property>
       </bean>

       <bean id="MenuTarget" class="example.Menu" singleton="false"/>-->

       <bean id="Menu" class="example.Menu" singleton="false"/>



Any help is greatly appreciated!

Thanks,
Lee

Reply via email to