Hello,
I have downloaded Struts-blank to play with. I added Spring support and here
is my Spring applicationContext.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="autodetect">
<!-- =============================== Interceptors
================================= -->
<bean id="timeLoggingAdvice" class="advice.TimeLoggingInterceptor"/>
<!-- =============================== Advisor
====================================== -->
<bean id="timeLoggingAdvisor"
class="
org.springframework.aop.support.NameMatchMethodPointcutAdvisor">
<property name="mappedNames">
<list>
<value>execute</value>
</list>
</property>
<property name="advice">
<ref bean="timeLoggingAdvice"/>
</property>
</bean>
<!-- ============================== Spring Beans
================================= -->
<bean id="helloWorld"
class="
org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces">
<value>example.IHelloWorld</value>
</property>
<property name="interceptorNames">
<list>
<value>timeLoggingAdvisor</value>
</list>
</property>
<property name="target">
<ref local="helloWorldTarget"/>
</property>
</bean>
<bean id="helloWorldTarget" class="example.HelloWorld" singleton="false"/>
<!--<bean id="helloWorld" class="example.HelloWorld" singleton="false"/>-->
</beans>
I added a Spring proxy for helloWorld and the interceptor works great. But,
the il8n does not work. When I remove the proxy for helloWorld, then the
il8n works again. I suspect the hierarchy of the class is mess up when I
added a proxy to use Spring interceptor.
Is there a way to get around this? Can I configure the resource bundle by
providing the explicit path such as
WEB-INF/config/resource_bundle.properties?
Any help is be greatly appreciated!
Thanks,
Lee
--
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)