| Author |
Message |
|
|
|
Post subject: [Closed]CSS Problems
Posted: Oct 11, 2005 - 02:41 PM
|
|

Joined: Oct 11, 2005
Posts: 15
|
|
Hoi All,
I am new to the MyEclipse tool and JAVA development so bear with me,
I have a problem with my CSS. I know that I am loading the style sheets with the link tag in the right place (between the closing head and opening body tags) and when I use eclipse's preview of the page it show the page formatted with the CSS. But when I start my TomCat4 server and navigate to the JSP page is shows the page without CSS formatting.
Whey I do not know
Pleas help thanx! |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Oct 11, 2005 - 04:27 PM
|
|
Moderator


Joined: Mar 31, 2004
Posts: 1615
|
|
Could you post your JSP file with the <head> section so we can see how you are linking to the CSS page? Also, can you verify that the CSS page is being deployed alongside the JSP in tomcat? |
_________________ Greg
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Oct 12, 2005 - 07:29 AM
|
|

Joined: Oct 11, 2005
Posts: 15
|
|
| support-greg wrote: | | Could you post your JSP file with the <head> section so we can see how you are linking to the CSS page? Also, can you verify that the CSS page is being deployed alongside the JSP in tomcat? |
How would i get the information about the CSS deployment will it be shown in the console?
| Code: |
<head>
<title>JSP for loginForm form</title>
</head>
<link rel="stylesheet" HREF="CSS/pagestyl.css" TYPE="text/css" TITLE="def font page">
<body>
Welcome
<% String name = String.valueOf(request.getParameter("name"));
out.println(name);%>
you have sucessfully logged in!
|
|
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Oct 12, 2005 - 07:34 AM
|
|

Joined: Oct 11, 2005
Posts: 15
|
|
Sorry i forgot to give you my Dir structure it looks like this:
WEB-ROOT
>
META-INF
WEB-INF
form
> CSS
> images |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Oct 20, 2005 - 09:47 AM
|
|
Moderator


Joined: Mar 31, 2004
Posts: 1615
|
|
Try putting the <link> element in the <head> section instead of between </head> and <body>. |
_________________ Greg
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Oct 20, 2005 - 01:56 PM
|
|

Joined: Oct 11, 2005
Posts: 15
|
|
I solved the problem Thx guys :-)
i forgot to add the base tag in my JSP pages |
|
|
| |
|
|
|
 |
|
|