I am using the eclipse helper for Java EE development. I am developing a Struts web application. In a JSP page I use code like this
<script type="text/javascript" src="<%out.print(getServletContext().getContextPath());%>/js/jquery.js"></script>
<link rel="stylesheet" href="<%out.print(getServletContext().getContextPath());%>/css/home.css" />
When I run my server this page works correctly. However, Eclipse shows an error on getServletContext()
The method getServletContext() is undefined for the type __2F_Compiler_2F_WebContent_2F_pages_2F_home_2E_jsp
Here's a screenshot:
Because the page works correctly, I'd like to hide this error in Eclipse. How can I do that?