<style type = "text/css">@import url(WebContent/css/adminstyle.css);
In order to help me diagnose the problem, I am trying to print on the jsp itself the value of what the above statement is resolving the url to. How can I get it
to print the value of:
I want to know what url the above statement in resulting in after it is evaluated.
Also, please avoid editing your post after someone has responded. Continuing to do that will not make you any friends.
What would be most helpful is the code where you reference the resources, and (precisely) where the resources are in your filer hierarchy. The <c:url> tag will do the right thing if you feed it the correct path.
Moe Ba wrote:There was also some confusion regarding what directory the "servlet lives in". I thought the servlet behaves as if the application context "lives in" the root directory of the project, but it helped me more to think that it "lives in" the WebContent directory of the project (the Eclipse project).
Actually, it's best to understand the the servlet "lives" nowhere. That's why the JspFaq states to always use server-realtive addressing which makes no assumptions about where the servlet "lives".