This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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.
 
 
subject: Confirmation message in Struts using JavaScript