Re: Initializing Actions from Spring

2008-03-31 Thread georgievh
Every thing works perfectly if I do not use annotations but use configuration xml files. My annotation part is as follows: @Result( name=success, value=mainpage.page, type=TilesResult.class) I use the following configuration in an xml file and

Re: Initializing Actions from Spring

2008-03-30 Thread georgievh
Thank you for the reply. I am new to both Spring and Struts2 and I apologise in advance should my mistake is a silly one. Please find the relevant code bellow: web.xml: ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN

Re: Initializing Actions from Spring

2008-03-30 Thread georgievh
Sorry for the misleading. I have a constructor. The class is actually as follows: package com.gbsoft.belfin.communitypages.actions.mainpage; import java.lang.Exception; import org.apache.struts2.config.Result; import org.apache.struts2.views.tiles.TilesResult; import

Initializing Actions from Spring

2008-03-29 Thread georgievh
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