So the .jsp page is an animated ad, it will do its animation then wait two seconds and redirect user to another page.
Everything seems to be working fine using my localhost but when we push the project out to stage(testing) environment, the jsp page would just display the source code rather than the animation that i wanted.
Any ideas on why this could happen?
Here is my code:
<filter>
<filter-name>SplashPage</filter-name>
<filter-class>com.pinksheets.common.web.filter.SplashPageFilter</filter-class>
</filter>
<filter>
<filter-name>RunAd</filter-name>
<filter-class>com.pinksheets.common.web.filter.SplashAdFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>RunAd</filter-name>
<url-pattern>/home</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>SplashPage</filter-name>
<url-pattern>/splash</url-pattern>
</filter-mapping>
The .jsp page is just a regular page with a short animation
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="user-scalable=yes, width=900px" />
<title>New Security</title>
</head>
<body>
<div style="margin: auto; width: 900px">
<div id="otcani2_hype_container" style="position: relative; overflow: hidden; width: 900px; height: 650px;">
<script type="text/javascript" src="splashPage/otcani2_hype_generated_script.js?42496"></script>
</div>
<!-- end copy -->
</div>
</body>
</html>