Originally posted by Ben Souther:
Look at your browser's address window.
What is the difference in the URL when you hit it directly and when you come to it by the way of a re-direct?
Originally posted by Bear Bibeault:
Most likely you are using a page-relative reference to the CSS file that is not resolving correctly.
Originally posted by Bear Bibeault:
<link href="/contextname/theme/newcss.css" rel="stylesheet" type="text/css"/>
Where contextname is the name of the app context and the theme folder is at the root of the web app base. (If not, insert the appropriate folder hierarchy).
To obtain the context name programatically you can use request.getContextPath() in JSP 1.x or ${pageContext.request.contextPath} in JSP 2.0.
Originally posted by Ben Souther:
Can you post the location of the two pages and the css sheet?
Are both JSPs in the same context?
Post the paths on the server and the URLs used to reach both.
Originally posted by Adeel Ansari:
Ok. After getting that page without CSS, just refresh it using browser refresh button and then see whether it appears with CSS or not?
Originally posted by Bear Bibeault:
Have you performed the basic debugging step of doing a View Source of the page when it is misbehaving to see if the HTML is formatted correctly? Have you done a side-by-side comparison of the HTML when it appears correctly and when it does not?
This step could very well tell you where the problem lies.