aspose file tools*
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
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