Hello,
I�m trying to develop a
JSF appliation, and I�ve decided to divide
JSP files in several groups of folders. (web/products/, web/users/... you know.)
Well, my problem is that when I want to refer an image, or a css, I cannot put a relative url because I cannot write someting like this:
<%
String CONTEXT=request.getContextPath();
%>
...
<h:graphicImage value="<%=CONTEXT%>/pages/img/logo.gif"></h:graphicImage>
It fails!!
or even
<h:graphicImage value="#{anyBean.imageUrl}"></h:graphicImage>
It fails, too.
So, �its necessary to put every jsp in the same folder to avoid this?
please help!! And forgive my "survival" English.