Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

${pageContext.request.contextPath} problem

843838Oct 3 2005
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 31 2005
Added on Oct 3 2005
0 comments
278 views