How do include a javascript file into JSP?
I am using the following code to include some java script (- no error messages are being displayed, but it is not working):
<jsp:include page = "validation.js" flush = "true" />
I also placed this in the header tags:
<script language="JavaScript" type="text/JavaScript">
<--
//-->
</script>
As well as in the form tag I placed the usual code:
<form name="claimform1" onSubmit="return Claim(this)" id="claimform1" method="post" action="Claim_Form_2.jsp">
The java script code is saved in a file called "validation.js" Can anyone suggest what else I can do for JSP to recognise the javascript code? :confused:
Maria
Include .js file in a JSP page
I am also having an issue including a .js file on the JSP page. Need a few examples of how to code the page that includes the dynamic drop down list.
Thank you.