Re: Initializing Actions from Spring

2008-03-31 Thread Laurie Harper
Your action mapping has class="mainpage", but your Spring configuration has id="mainpageAction". These should be the same. I'm not quite sure how you're getting the error you are, though, based on that configuration. And I don't see how introducing an @Result annotation would effect it. I suspe

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 an

Re: Initializing Actions from Spring

2008-03-30 Thread Laurie Harper
So what *is* the problem? Is Spring not loading the action? Is Struts not finding the action? Something else? The code/configuration you've posted looks basically OK. L. georgievh wrote: Sorry for the misleading. I have a constructor. The class is actually as follows: package com.gbsoft.be

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 com.opensymphony.xwork2.

Re: Initializing Actions from Spring

2008-03-30 Thread Dave Newton
Did you say the problem was that the "message" property wasn't being initialized? I see a ctor arg in the Spring config, but I don't see any ctors in the action class itself; is Spring able to "do the right thing" in this case? I've always either used explicit ctors or set properties directly. Da

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: http://java.sun.com/dtd/web-app_2_3.dtd";> org.apache.tiles.impl.BasicTilesContainer.DEFINIT

Re: Initializing Actions from Spring

2008-03-30 Thread mgainty
pls display contents of your xwork.xml and the configuration of the spring listener you are referencing in web.xml http://www.opensymphony.com/webwork/wikidocs/Other%20Spring%20Integration.ht ml Thanks Martin- - Original Message - Wrom: TLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBR To: Sent: Satur