File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Action[/demo] does not contain method named edit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Action[/demo] does not contain method named edit" Watch "Action[/demo] does not contain method named edit" New topic
Author

Action[/demo] does not contain method named edit

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 300
Hi List[],

I am using Dispatch Action and getting following error message in browser.Please help me


Status report

message Action[/demo] does not contain method named edit

description The server encountered an internal error (Action[/demo] does not contain method named edit) that prevented it from fulfilling this request.

MyActionForm

MyAction Class

MyJsp Page

StrutConfig.xml


Chris Boldon
Ranch Hand

Joined: Aug 10, 2006
Posts: 190
This would tell me you are trying to access ..../demo.do?actionType=edit

That method doesn't exist in your action. Your action has a method called EditUser, which of course should be named editUser to follow proper naming conventions. I didn't see where you are making that request, maybe in your javascript file.
pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 300
Thanks Sir.

I got the solution as you said.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Action[/demo] does not contain method named edit
 
Similar Threads
Struts: No getter method for property name problem
How to find method in Sturts
Exception creating bean of class
No getter method for property name1 of bean pagesArrayList
No getter method for property - Problem