Two Laptop Bag*
The moose likes Struts and the fly likes Problem in calling a method in my Action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem in calling a method in my Action" Watch "Problem in calling a method in my Action" New topic

Problem in calling a method in my Action

Ramesh Jothimani
Ranch Hand

Joined: May 05, 2011
Posts: 70

I have a method named handleReportUpdate() in my . When I try to call handleReportUpdate , I am getting error as ,

java.lang.NoSuchMethodException: com.tcs.admin.actions.ReportsConfigurationAction.handleReportUpdate(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
at java.lang.Class.getMethod(
at org.apache.struts.actions.DispatchAction.getMethod(
at org.apache.struts.actions.DispatchAction.dispatchMethod(
at org.apache.struts.actions.DispatchAction.execute(
at org.apache.struts.action.RequestProcessor.processActionPerform(
at org.apache.struts.action.RequestProcessor.process(
at org.apache.struts.action.ActionServlet.process(
at org.apache.struts.action.ActionServlet.doPost(

The Method is as follows :

The entry in struts-config file is as follows :

I am calling the handleReportUpdate() as follows :


Please help me to solve the issue . Thanks !

Vivek Kanodia

Joined: Apr 27, 2012
Posts: 6
You are probably getting the Exception because the method expected is
public ActionForward execute(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception. Just try changing the method name and it might solve your problem.
Ramesh Jothimani
Ranch Hand

Joined: May 05, 2011
Posts: 70

I have changed


So the method handleReportUpdate() requires ActionForm in the parameter. I have passed ActionForm in function parameter & it is working fine now.

Thanks !
I agree. Here's the link:
subject: Problem in calling a method in my Action
Similar Threads
internal error: (No action instance for path /lookup could be created)
prevent multiple submission of forms in struts
Problem in struts DispatchAction
Can't load IA 32-bit .dll on a AMD 64-bit platform
Dispatch Error Action