When I have multiple web applications running on the one server - I'm having problems 
referencing files in other directories.

eg - I can't use "/images/anImage.gif" because that references the document root.  I 
can use "<%= request.getContextPath() %>/images/anImage.gif" ,but that gets tedious.  
Is there a better way to do it?

The other problem I have is referencing images from stylesheets and javascript files.  
Because they don't go through the JSP processor, I can't use request.getContextPath() 
.  Without mapping .css and .js to the jsp servlet - is there a way around this?

Also - with include files - are they always rooted from the web context

ie <@ include file="/includes/pageheader.jsp" %> —--> does this map to  
http://myserver.com/mywebapp/includes/pageheader.jsp   ?

Does the same go for <jsp:include page="/includes/pageheader.jsp" />  ?

Thanks in advance for any help.

Scott


Reply via email to