It's not a secret anymore!*
The moose likes Struts and the fly likes Confirmation message in Struts using JavaScript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Confirmation message in Struts using JavaScript" Watch "Confirmation message in Struts using JavaScript" New topic
Author

Confirmation message in Struts using JavaScript

Param Yanamandra
Ranch Hand

Joined: Jun 06, 2002
Posts: 33
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

Joined: Jun 06, 2002
Posts: 33
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Confirmation message in Struts using JavaScript
 
Similar Threads
Confirmation message in Struts using JavaScript
Two submit buttons.
My First Struts App
Cancel button and bypassing JavaScript validation
problem using validator framework with DispatchAction