1

我有以下页面,其中包含以下嵌入在 JSP 中的代码。

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>B2E</title>
<link rel="stylesheet" href="../style/global.css">
<link rel="stylesheet" href="../style/local.css">
<link rel="stylesheet" href="../style/calendarControl.css">
<script language="JavaScript" src="../jscripts/calendarControl.js"></script>
<script src="../jscripts/ajaxAction.js"></script>
<script language="javascript" src="../jscripts/ajaxMaster.js"></script>
</head>
<body>
<table border = "0" cellspacing="0" cellpadding="0" width = "100%">
            <tr>
                <td colspan="100%" bgcolor=""><img height="" src="../images/spacer.gif" width="100%"></td>
            </tr>
            <tr>
                <td bgcolor="#FFFFFF" colspan="100%" align = "left" class="headerbg" height="30">&nbsp;</td>
            </tr>
            <tr>
                <td colspan="100%" bgcolor=""><img height="" src="../images/spacer.gif" width="100%"></td>
            </tr>
</table>
<%//@ include file="../includes/mainTheme.jsp"%>
<form action="" name="f"> 
<table align ="right">
    <tr>
        <td><input type="text" name="vs" value="" size="30" class="small"></td>
        <td><input type="button" value="Find" onclick="return check()" class="small"/></td>
    </tr>
    <tr>
        <td class="greysmall">(Enter visitor name/company name)</td>
    </tr>
</table>
</form>
    <table border = "0" cellspacing="0" cellpadding="0" width = "100%">
            <tr>
                <td colspan="100%" bgcolor=""><img height="1" src="../images/spacer.gif" width="100%"></td>
            </tr>
    </table>
<br>

<table border = "0" cellspacing="0" cellpadding="0" width = "100%" style="background-color:#9900FF" height="30">
        <tr>
            <td colspan="" bgcolor="">&nbsp;</td>
            <td colspan="" bgcolor="" ><a href="javascript:void();" class="boldsmall" onclick="goHome()" style="color:#FFFFFF">Home</a></td>
            <td colspan="" bgcolor="" ><a href="javascript:void();" class="boldsmall" onclick="createNew()" style="color:#FFFFFF">Create Visit</a></td>
            <td colspan="" bgcolor="" ><a href="javascript:void();" class="boldsmall" onclick="scheduleVisit()" style="color:#FFFFFF">Schedule Visit</a></td>
            <!--<td colspan="" bgcolor=""><a href="javascript:void();" class="boldsmall">Other Administrative Tasks</a></td>-->
            <td colspan="" bgcolor="" ><a href="javascript:void();" class="boldsmall" onclick="showAllVisitor()" style="color:#FFFFFF">All Visitors</a></td>
            <td colspan="" bgcolor="" ><a href="javascript:void();" class="boldsmall" onclick="showExVisitor()" style="color:#FFFFFF">Exited Visitors</a></td>
            <td colspan="" bgcolor="" ><a href="javascript:void();" class="boldsmall" onclick="showScheduleVisitor()" style="color:#FFFFFF">Scheduled Visitors</a></td>
            <td colspan="" bgcolor="" ><a href="javascript:void();" class="boldsmall" onclick="showBlackVisitor()" style="color:#FFFFFF">Black List Visitors</a></td>
            <td colspan="" bgcolor="" ><a href="javascript:void();" class="boldsmall" onclick="launchBox();" style="color:#FFFFFF">Daily Visitors</a></td>

        </tr>
</table>
<br>
<table border = "0" cellspacing="0" cellpadding="0" width = "100%">
        <tr>
            <td colspan="100%" bgcolor=""><img height="1" src="../images/spacer.gif" width="100%"></td>
        </tr>
</table>
<div id="txtHint" class="small" align="center" style="overflow:">

</div>
<br/>
<%//@ include file="../includes/footer.jsp"%>

<%response.setContentType("text/xml");
response.setHeader("Cache-Control", "no-cache");
%>
</body>
</html>

当我在 Tomcat Web 服务器上处理此页面时,我遇到了以下错误。

在此处输入图像描述

我无法解决这个问题。这个错误的原因是什么?

正如错误所暗示的那样,但由于它已经正确关闭,因此>无需放置更多。>

4

1 回答 1

0

您的链接标签未关闭,您的所有中断标签和图像标签也未关闭。

固定示例:

   <link rel="stylesheet" href="../style/global.css"/>
   <link rel="stylesheet" href="../style/local.css"/>
   <link rel="stylesheet" href="../style/calendarControl.css"/>
于 2012-10-22T12:16:22.800 回答