Hi everyone!
I just want to know how to insert javascripts in a struts page?
here's my version but not working..=(
<html:html locale="true">
<head>
<title>JSP page</title>
<script type="text/javascript">
function confirmation(){
confirm("Are you sure to update?");
}
</script>
</head>
<body>
<html:form action="update.do" method="POST">
<html:submit onclick="confirmation()" value="Update">
</html:form>
</body>
</html:html>
In my test page works fine, however...(sad part) I am expecting a pop up
window message that confirms if I want to update or not.
but it just proceeds with the action (*.do)
Any suggestions?
God bless,
Ryan Webb -- Philippines