Home Tutorialhelp Comment alert is not working with Struts2

 
 

Comment

Prakash raja
alert is not working with Struts2,
June 25, 2008 at 5:47 PM

Here my code is there,
<head>
<script type="text/javascript">
function call()
{
alert('confirm');
}
</script>
</head>
Form:
======
<s:form enctype="multipart/form-data" method="post">
<s:submit name="cancel" value="Cancel" action="strategyCycle" theme="simple" cssClass="groovybutton" onclick="call()" />
</s:form>

whenever i click the submit button it is not calling the corresponding Script function name as call().

I am looking for quick reply.
View All Comments
Related Tutorial and Articles

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.