Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Confirmation message in Struts using JavaScript

 
Param Yanamandra
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,
I m having trouble using JavaScript in a JSP page. I m using Struts framework. My form and the submit button are creating using Struts HTML form and submit tags. I want a confirmation message using JavaScript when the user clicks the Submit button before the action gets invoked and my action should be invoked only when the user selects "Yes". I tried this and I m getting an error :Stack overflow at line:xx. Does anybody know why this is happening or if there is any other way of doing it. Thanks in advance,

Param
 
Param Yanamandra
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I figured out what the problem is. My JavaScript method name is same as the built-in method which is causing confusion. Once I changed my method's name to a different name it works.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic