• Post Reply Bookmark Topic Watch Topic
  • New Topic

CSS Source is displayed on the Screen  RSS feed

 
Mahadevan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Sometimes while login into the application CSS source is displayed on the screen and then the actual jsp is rendered. On click of Browser's Refresh button it is displaying only the screan instead of the source.

Can anyone tell us why it is displayed on the screen?

The css file is included in jsp as follows in <head> tag:
<link href="<%contextroot =%>/style/test.css" type="text/css" rel="stylesheet">

Thanks
Maha
 
Scheepers de Bruin
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried:

<style type="text/css">
@import "<%=contextroot%>/style/test.css";
</style>
[ October 06, 2005: Message edited by: Scheepers de Bruin ]
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our JSP forum...
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Mahadevan JB",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!