${pageContext.request.contextPath} problem
I am using it inside index.jsp for all images
something like
src="<c:out value="${pageContext.request.contextPath}"/>/images/logo.gif">
This works most of the time but many times it also gives error
---------------------
2005-10-02 17:21:10 ApplicationDispatcher[TQ3] Servlet.service() for servlet jsp threw exception
java.lang.Error: Unresolved compilation problems:
org.apache.taglibs cannot be resolved to a type
org.apache.taglibs cannot be resolved
org.apache.taglibs cannot be resolved to a type
at org.apache.jsp.jsps.index_jsp._jspx_meth_c_out_0(index_jsp.java:245)
at org.apache.jsp.jsps.index_jsp._jspService(index_jsp.java:89)
-------------------------
This is specially the case when i redirect from another servlet back to this (if session over, logout etc)
If i remove the $pageContext.request.contextPath and hardcode it then it is ok.
What's going wrong in this case?
regards
Manisha