2013-06-20 57 views
0

我對servlet很熟悉。Eclipse,基本JSP和Apache Tomcat

我想在jsp的幫助下做一個項目。我做了一個名爲的網站的eclipse上的Web項目,然後我複製了一些命令,如jsp:include。起初,它跑了正確顯示所有的情況下,但之後它只是給了喜歡的錯誤:

Http page not found

我不知道我做錯了。我也沒有對web.xml文件進行更改。我不知道該文件是否需要更改。

<html><head> 
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> 
<title>Yo</title> 
<jsp:include page="Header.html"/> 

</head> 
<body> 
<!--<div id="header" style="background-color:orange;width:1360px;height:120px"> 
<h1><style="margin-bottom:0;"><font size="72px" color="white" ><center> 
UTTAR PRADESH TECHNICAL UNIVERSITY 
</center></font></h1> 
</div>--> 
WebSite under contruction. 
<table width="100%" border="0" cellspacing="0" cellpadding="0" > 
<tr> 
<td width="15%"> <jsp:include page="LeftPanel.html" flush="true"/>Left Panel </td> 
<td width="70%" class="alignment"> 
    <table width="100%" border="0" cellspacing="0" cellpadding="0" > 
    <tr><td><jsp:include page="Header.html" flush="true"/></td> 
    </tr> 
    </table> 
</td> 
<!--<td width="15%"> <jsp:include page="RightPanel.html" flush="true"/>Right    Panel</td>--> 
</tr> 
</table> 
</body> 

這是我做的版本,但它不工作,甚至是簡單的代碼如下面是沒有得到正確部署。

<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> 
<title>Watch Initial D live Online Free</title> 
<jsp:include page="Header.html"/> 
</head> 
<body> 
Hey Whats Up just Testing.. 
</body> 
</html> 
+0

我得到它運行..其實我的apache服務器與端口8080的oracle 10g服務器衝突.. –

回答

0

我發現了它爲什麼會發生衝突並停止響應的原因。 是在港口 衝突的的Oracle 10g服務器,所以我切換端口80我的Apache Tomcat服務器的。 現在它工作正常。

+0

如何接受我自己的答案 –