• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Action[/demo] does not contain method named edit

 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sir.

I got the solution as you said.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic