Hi,

I am trying to initialize Struts2 Actions from Spring.
I have done this successfully using struts2 xml configuration files.
However, I did not have the same success when using annotations.

Could anyone please explain how I can achieve this.

Here is my approach:
In file MainpageAction.java I have:
...
@Result( name="success", value="mainpage.page", type=TilesResult.class )
...

In applicationContext.xml I have:
…
                <bean id="mainpageAction"
                        
class="com.gbsoft.belfin.communitypages.actions.mainpage.MainpageAction"
                        autowire="autodetect"
                        singleton="false">
                <constructor-arg>
                        <value>Buenos Dias!</value>
                </constructor-arg>
        </bean>
…

Thank you in advance for your help
-- 
View this message in context: 
http://www.nabble.com/Initializing-Actions-from-Spring-tp16377674p16377674.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to