facebook

[Closed]CSS Problems

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #239135 Reply

    werns
    Member

    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!

    #239145 Reply

    Greg
    Member

    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?

    #239212 Reply

    werns
    Member

    @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?

    
         <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!  
    
    #239213 Reply

    werns
    Member

    Sorry i forgot to give you my Dir structure it looks like this:

    WEB-ROOT
    >
    META-INF
    WEB-INF
    form
    > CSS
    > images

    #239768 Reply

    Greg
    Member

    Try putting the <link> element in the <head> section instead of between </head> and <body>.

    #239780 Reply

    werns
    Member

    I solved the problem Thx guys 🙂

    i forgot to add the base tag in my JSP pages

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: [Closed]CSS Problems

You must be logged in to post in the forum log in