The JSP includes the following lines:
<SCRIPT src="../javascript/Util.js"></SCRIPT><noscript>Javascript is required.</noscript>
<SCRIPT language="JavaScript">getStylesheet(navigator, document);</SCRIPT><noscript>Javascript is required.</noscript>
Now, when the browser is trying to render the page, it generates the following two errors:
Syntax error
Object expected error
The two errors correspond to the two SCRIPT lines above. When I removed the SCRIPT lines the two errors were gone.
The question is why the the Util.js Javascript is not being found by the server?
Please note that I did read the FAQ on how to resolve resource url problems. Unfortunately, the following suggestion from FAQ did not solve the problem:
<script src="${pageContext.request.contextPath}/javascript/Util.js"></script>
I did try server relative addressing as I mentioned at the bottom of my previous posting:
<script src="${pageContext.request.contextPath}/javascript/Util.js"></script>
It did NOT solve the problem. What else could cause this issue? Could this have something to do with the JSP being called from the filter? Any other ideas? :roll:
more over, i dont see FilterChain.doFilter(request,response) in your fiter class.further, if you want to forward to jsp or servlet you need to mention that .