Originally posted by krish chaitu:
Hi
I have a CSS file defined inside my jsp file with the tag
<link rel="stylesheet" href="./css/global.css" type="text/css" /> i am able to view the preview on my desktop but when i deploy my ear file on the server,its not able to pick my css file . iam actually surprised with it.
Can anyone help me in this regard .
Thanks
krish
Originally posted by krish chaitu:
Hi
I have a CSS file defined inside my jsp file with the tag
<link rel="stylesheet" href="./css/global.css" type="text/css" /> i am able to view the preview on my desktop but when i deploy my ear file on the server,its not able to pick my css file . iam actually surprised with it.
Can anyone help me in this regard .
Thanks
krish
Originally posted by pulijala hari:
why dont you get the css file using the getContextPath() method?
Careless mistakes will shoot you down every time. Carefully check the syntax of your statement and be sure that you understand it before using it.Originally posted by krish chaitu:
<link rel="stylesheet" ref="${pageContext.request.contextPath/css/global.css}" type="text/css" />
Originally posted by Bear Bibeault:
Careless mistakes will shoot you down every time. Carefully check the syntax of your statement and be sure that you understand it before using it.
Originally posted by Bear Bibeault:
Consider your use of the EL. Are your braces, { and }, in the right places?
No, they are not.Originally posted by krish chaitu:
My braces are at the right place.
Originally posted by Bear Bibeault:
No, they are not.
Originally posted by krish chaitu:
Hii,
Here is how iam using, just tell me if it is wrong,what need to be done
<link rel="stylesheet" ref="${pageContext.request.contextPath}/css/global.css" type="text/css" />
Thanks
krish
Originally posted by Ben Souther:
This is not what you posted earlier.
See: http://faq.javaranch.com/java/AvoidRedHerrings
This now looks OK.
Which.. brings us back to my earlier question.
What are you using to view this JSP (what are you talking about when you say "PREVIEW')?
[ December 06, 2007: Message edited by: Ben Souther ]
Curse your sudden but inevitable betrayal! And this tiny ad too!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|