tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roman Sokolyuk <>
Subject Newbie: CSS not taking effect
Date Fri, 31 Jul 2009 14:56:34 GMT

I built a few XHTML pages for a personal website and added style with CSS.
In a browser everything looks great. I converted the pages into JSP's and
the style no longer registers.
Here is the JSP markup:

<%@ include file="header1.jsp" %>

        <title>My Site: Home</title>

<%@ include file="header2.jsp" %>

<%@ include file="pageTop.jsp" %>

<%@ include file="navigation.jsp" %>

<div id="bodyContent">

<?xml version="1.0" encoding="ISO-8859-1" ?>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"

        <link href="../../CSS/style1.css" rel="stylesheet" type="text/css"/>
        <script type="text/javascript" src="JS/householdJS.js">

MacOS X Leopard
Tomcat 6
java version "1.5.0_19"

The CSS directory is under the app context, alongside WEB-INF.

Am I specifying the path to the CSS correctly? Anyone can suggest what else
I may be doing wrong?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message