Hello Everyone. I am pretty much a newbie when it comes to webwork. Anyway, I
have been debugging this code for the past 5 hours now and I believe that I need
some expert help. Here is the problem. Whenever I try to call a particular
mapped action in my xwork, my tomcat always have this warning error. The code
that calls the action is this:
(JAVASCRIPT)
case "replicate":
window.location="replicateStudy.html?id="+defId
break
and my xwork mapping for this action is:
<action name="replicateStudy" class="studyAction" method="makeReplicates">
<result name="success">/WEB-INF/pages/studyReplicate.jsp</result>
</action>
for the studyAction method makeReplicates, this is the code:
public String makeReplicates(){
if (id != null) {
study = studyManager.getStudy(id);
System.out.println("Yummy");
} else {
study = new Study();
System.out.println("ID is "+id);
}
return SUCCESS;
}
The weird thing is that my tomcat always says this error:
no result defined for action com.webapp.action.StudyAction and result input
My System.out doesnt even come out so its safe to say that the makeReplicates
method doesnt even get called. My question is why doesnt it get called? What
should have I done differently. I have a another very similar code and it works
fine but for this one, it doesnt.
Additional Info:
Just to add, this is the complete error in tomcat:
DefaultActionInvocation.executeResult(313) |no result defined for action
com.webapp.action.StudyAction
and result input
plus:
Any statement other than the SUCCESS word will already show the error statement.
I would appreciate any help and thank you in advance!
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=94555&messageID=162457#162457