aspose 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
No getter method for property - Problem
How to find method in Sturts
No getter method for property name1 of bean pagesArrayList
Struts: No getter method for property name problem
Exception creating bean of class