• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CSS is not coming into effect

 
Jagdeep Sharma
Ranch Hand
Posts: 121
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

I am facing a problem. I have included a CSS file into a jsp page. When i see webpage in IE. everything works fine but in Firefox. It comes with default page style. I have checked every path and all the things. What could be the reason. I also faced this situation few weeks ago.


Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64716
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may have checked the paths, but we haven't.
 
Jagdeep Sharma
Ranch Hand
Posts: 121
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:You may have checked the paths, but we haven't.



 
vijin das
Ranch Hand
Posts: 129
Firefox Browser Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jagdeep Sharma wrote:I also faced this situation few weeks ago.


Then what you did to solve it...
 
Jagdeep Sharma
Ranch Hand
Posts: 121
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vijin das wrote:
Jagdeep Sharma wrote:I also faced this situation few weeks ago.


Then what you did to solve it...





Then i made external stylesheet to inline stylesheet. But at this moment i don't want to do that. Please suggest me some solution.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64716
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I suspected you are using page-relative addresses. bad news!

Check the JSP FAQ for information on how to create proper server-relative URLs that begin with the context path.
 
Jagdeep Sharma
Ranch Hand
Posts: 121
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:As I suspected you are using page-relative addresses. bad news!

Check the JSP FAQ for information on how to create proper server-relative URLs that begin with the context path.



Hey Bear,

I understand your point. Now i am almost there. But i am using MVC framework for my application. I know the my context path is SERVLET. Now i want to know how to generate server-relative URLs. Can you little bit explain.


Thanks
 
Jagdeep Sharma
Ranch Hand
Posts: 121
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:As I suspected you are using page-relative addresses. bad news!

Check the JSP FAQ for information on how to create proper server-relative URLs that begin with the context path.



One more thing Bear. I applied server-relative path. and also checked it (by viewing source in firefox and click on css link). CSS file opens fine. That means my server-relative path is correct. But my problem is still there.

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64716
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Show please.
 
Jagdeep Sharma
Ranch Hand
Posts: 121
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Show please.


Here it is
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic