I gotta situation where my project is up & running from many years.
Now to enhance it's security I'm planning to include some code (Using a common javascript & jsp file) in every jsp file.
To overcome this manual work, is there any way out where I can configure my web application (In web.xml or somewhere else) and my file includes goes with every page my container dispatch.
Sample Code:
<script type="text/javascript" src="myCommonCode.js"></script>
<%@include file="myHelperFile.jsp" %>