Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

style sheet problems

 
subramanian
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello sir/madam,
i am downloading the html file into word format. while i download i set the my CSS file like this:

<head>
<link rel="STYLESHEET" type="text/css" href="<%=sContextPath%>/html/css/professional.css">
</head>

where <%=sContextPath%> is the my server relative URLpath. but when i download it asking me to place that
professional.css file in C:\ directory.

while client access my server it is asking client to place the professional.css file in his system.

how to fix this problem?

thanks lot
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"subra subra",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp.
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please edit your profile and select a new name which meets the requirements.
To solve this problem, you may need to add the mime-type to the list for the web server or application server (depending on your setup) ie "text/css extension css"
Thanks.
Dave
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
subramanian,

Welcome to JavaRanch!! I appreciate that you changed your display name when David asked , but apparently you didn't READ the policy .
JavaRanch's naming policy. It should not be obviously fictitious.
Your displayed name should be 2 separate names with more than 1 letter each. We really would prefer that you use your REAL name.
You can change your name: here.
Thanks,
Cindy
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since you don't start your href with a slash, it thinks that what you are desdcribing is relative to your actual URL (like under the /servlet/ directory).
Try adding the leading slash.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic