日期:2014-05-17  浏览次数:20666 次

window环境编写jsp,上传到网站(linux服务器),访问servlet出404错误!
在window系统测试没有错误, 上传后访问html,jsp都没有问题,但是一旦有表单跳转到servlet,马上就报404错误!
这是managerLogin.jsp页面的内容:
HTML code

<%@ page contentType="text/html; charset=gbk"  language="java"%>
<html>
<head>
<title>SEIE Website Manager</title>
<link href="style/se.css" type="text/css" rel="stylesheet"/>
<script language="javascript" type="text/javascript" src="style/se.js"></script>
</head>

<body>
<table width="100%" height="100%">
<tr>
<td align="center" vlign="middle">
<form id="managerform" name="managerform" method="post" action="Ser_ManagerLogin">
<table width="400" height="300" border="0" cellpadding="0" cellspacing="0" style="border-left:1px solid; border-right:1px solid; border-bottom:1px solid; border-top:1px solid; border-color:#000000;  vertical-align:middle; margin-left:auto;margin-right:auto;" valign="center">
      <tr>
        <th colspan="2" scope="col"><img src="img/websiteManager.jpg" alt="website Manager" width="400" height="138" /></th>
      </tr>
      <tr>
        <td height="18" colspan="2" bgcolor="#666666"></td>
      </tr>
      <tr>
        <td height="18" colspan="2" bgcolor="#FFFFFF"></td>
      </tr>
      <tr>
        <td width="200" height="18" align="right" bgcolor="#FFFFFF">UserName:&nbsp;</td>
        <td align="left" bgcolor="#FFFFFF"><input type="text" name="username" id="username" onkeypress="javascript:mgrLoginOnKey(event);"/></td>
      </tr>
      <tr>
        <td height="18" colspan="2" bgcolor="#FFFFFF"></td>
      </tr>
      <tr>
        <td width="200" height="18" align="right" bgcolor="#FFFFFF">Password:&nbsp;</td>
        <td height="18" align="left" bgcolor="#FFFFFF"><input type="password" name="password" id="password" onkeypress="javascript:mgrLoginOnKey(event);"/></td>
      </tr>
      <tr>
        <td height="18" colspan="2" bgcolor="#FFFFFF"></td>
      </tr>
      <tr>
        <td height="18" colspan="2" align="center" bgcolor="#FFFFFF">
        <a onFocus="if(this.blur)this.blur()" onClick="javascript:checkmanagerform();return false;" style="cursor:pointer;">
        Login
        </a>
        &nbsp;&nbsp;&nbsp;
        <a href="index.jsp">Home</a>
        </td>
        </tr>
      <tr>
        <td height="18" colspan="2" bgcolor="#FFFFFF"></td>
      </tr>
      <tr>
        <td height="18" colspan="2" bgcolor="#FFFFFF"></td>
      </tr>
    </table>
    </form>
    </td>
    </tr>
    </table>
</body>
</html>



这是web.xml的部分配置代码:
XML code


<?xml version="