9 messages in net.java.dev.webwork.usersno result defined for action --- and ...
FromSent OnAttachments
jay fablanJun 27, 2007 6:36 pm 
tim_wonilJun 27, 2007 7:48 pm 
jay fablanJun 27, 2007 8:44 pm 
jay fablanJun 27, 2007 11:03 pm 
tim_wonilJun 27, 2007 11:24 pm 
jay fablanJun 28, 2007 12:49 am 
lensJun 28, 2007 2:08 am 
jay fablanJun 28, 2007 6:30 pm 
jay fablanJun 29, 2007 2:11 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:no result defined for action --- and result inputActions
From:jay fablan (webw@opensymphony.com)
Date:Jun 27, 2007 6:36:45 pm
List:net.java.dev.webwork.users

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