i have problem running my project from Tomcat. i used IDE before and never faced this problem till now. i have my jsp with a link to css, that looks like this:
<%@page import="data.PageData"%>
<%@page import="dao.pageDao"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<jsp:useBean id="pagedata" class="data.PageData" scope="request"></jsp:useBean>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title><jsp:getProperty name="pagedata" property="title" /></title>
<link rel="stylesheet" href="main.css">
</head>
<body>
<div id="big_wrapper">
<header id=top_header>
<h1>Site Header</h1>
</header>
<div id="new_div">
<section id="main_section">
<jsp:getProperty property="maintext" name="pagedata"/>
</section>
<aside id="side_menu">
<%= request.getAttribute("pagemenu") %>
</aside>
</div>
<footer id="the_footer">
Copyright 2012 ©
</footer>
</div>
</body>
</html>;
i put it in my tomcat s project root directory, just where i have my jsp. but whenever i try to run it, it shows my jsp page, but with no styles (it doesn t see main.css). what should i do to display it with styles? p.s. should i put smth in web.xml?