Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
werns
22 Post subject: [Closed]CSS Problems  PostPosted: 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!
 
 View user's profile Send private message  
Reply with quote Back to top
support-greg
Post subject:   PostPosted: Oct 11, 2005 - 04:27 PM
Moderator
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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
werns
Post subject:   PostPosted: 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! 
 
 View user's profile Send private message  
Reply with quote Back to top
werns
Post subject:   PostPosted: 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
 
 View user's profile Send private message  
Reply with quote Back to top
support-greg
Post subject:   PostPosted: Oct 20, 2005 - 09:47 AM
Moderator
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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
werns
Post subject:   PostPosted: 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
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits