I was given a Java web app code to deploy, and my problem is, when I deployed it to my local, it's working fine, but when I deploy it to our dev server, the CSS is all messed up. So I viewed the source of the page and I found out that the JSP Expression Language used in retrieving the context path is not returning any value, so that's why the page can't find the right location of the CSS.
Here's the code to retrieve the context path:
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/css/somestyle.css" media="all" />
Here's what I get when I view the page:
<link rel="stylesheet" type="text/css" href="/common/css/somestyle.css" media="all" />
I even tried deploying the EAR file deployed in the dev server to my local and vice versa. The result is the EAR file built in dev works fine in my local and my local ear file build is messed up in the dev server.
I can't figure out what's causing this, the dev server and my local has the same app server (OC4J), code, directory structure and ant script.
Please help. Thanks.