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
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
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
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.
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
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
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
7 matches
Mail list logo