Title: where should I place the image files
Petr Podsednik wrote:
<img src="<%=request.getContextPath()%>/images/app-logo.gif" ......
 
 
- I know that you often need your own context path in order to return a correct link to some resource in your web-app, but is there not a better way than calling request.getContextPath() ? It seems odd to me to ask for the context path on the request object - I am looking for something like
 
pageContext.getServletContext().getInitParameter("the application context path")
 
but I have not been able find out how to make this work...
 
 
Any comments / suggestions would be appreciated
 
R.

Reply via email to