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.
|
Title: where should I place the image files
- where should I place the image files Guan, Thomas
- Re: where should I place the image files Petr Podsednik
- Re: The best way to get the context path Randahl Fink Isaksen
- Re: The best way to get the context path Tim Endres
- SV: where should I place the image files Magnus Rydin
- RE: where should I place the image files Randahl Fink Isaksen
- RE: where should I place the image files Thomas Pridham