struts 问题:Attribute class invalid for tag link according to TLD

peter_su 2007-06-23 05:14:20
Attribute class invalid for tag link according to TLD
报了上面的那个错误。我的jsp代码如下:


<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"
prefix="logic"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<title>Home Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link rel="stylesheet" href="css/mm_spa.css" type="text/css" />
<style type="text/css">
<!--
body {
background-color: #330099;
}
.STYLE2 {color: #FFFFFF}
-->
</style>

</head>
<body background="img/mm_bg_red.gif">
<img src="img/mm_spacer.gif" alt="" width="50" height="1"
border="0" />
<table border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#220103">
<td rowspan="2" colspan="2" nowrap="nowrap">
<img src="img/mm_spa_photo1.jpg" alt="Header image" width="215"
height="108" border="0" />
</td>
<td colspan="2" height="55" nowrap="nowrap" id="logo"
valign="bottom">
Quality is the only way to survive and prosper
</td>
<td width="180" rowspan="2">
<img src="img/achievo_logo.gif" alt="header image 2" width="180"
height="84" border="0" />
</td>
<td width="11" rowspan="2">
 
</td>
</tr>
<tr bgcolor="#FF9900">
<td colspan="6">
<img src=" img/mm_spacer.gif" alt="" width="1" height="1"
border="0" />
</td>
</tr>

<tr bgcolor="#FF080E">
<td colspan="6">
<img src=" img/mm_spacer.gif" alt="" width="1" height="2"
border="0" />
</td>
</tr>

<tr bgcolor="#FF9900">
<td colspan="6">
<img src=" img/mm_spacer.gif" alt="" width="1" height="1"
border="0" />
</td>
</tr>

<tr bgcolor="#FF080E">
<td colspan="6">
<img src=" img/mm_spacer.gif" alt="" width="1" height="18"
border="0" />
</td>
</tr>

<tr bgcolor="#FF9900">
<td colspan="6">
<img src=" img/mm_spacer.gif" alt="" width="1" height="1"
border="0" />
</td>
</tr>

<tr bgcolor="#FF080E">
<td colspan="6">
<img src=" img/mm_spacer.gif" alt="" width="1" height="2"
border="0" />
</td>
</tr>

<tr bgcolor="#FF9900">
<td colspan="6">
<img src=" img/mm_spacer.gif" alt="" width="1" height="1"
border="0" />
</td>
</tr>

<tr>

<td width="165" valign="top" id="navborder">
<br />

<table border="0" cellspacing="0" cellpadding="0" width="160"
id="navigation">
<tr>
<td width="160">
<html:link href="/QASourceShare/home.do?method=abortus"
class="navText">ABOUT US</html:link>
</td>
</tr>
<tr>
<td width="160">
<html:link href="/QASourceShare/home.do?method=process"
class="navText">QA PROCESS </html:link>
</td>
</tr>
<tr>
<td width="160">
<html:link href="/QASourceShare/home.do?method=rules"
class="navText">QA
RULES/POLICIES</html:link>
</td>
</tr>
<tr>
<td width="160">
<html:link href="/QASourceShare/home.do?method=knowlege"
class="navText">DOMAIN
KNOWLEGE</html:link>
</td>
</tr>
<tr>
<td width="160" height="33">
<html:link href="/QASourceShare/home.do?method=skill"
class="navText">SKILL SHARING</html:link>
</td>
</tr>
</table>
</td>
<td width="50">
 
</td>
<td width="517" valign="top">
<img src=" img/mm_spacer.gif" alt="" width="305" height="1"
border="0" />
<br />
 
<br />
 
<br />

<table width="508" height="187" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td height="30" class="bodyText">
<div align="center">
<h1>
<li>
<bean:message key="knowlegeshare.tile.knowlegeshare" />
</li>
</h1>
</div>
</td>
</tr>
<tr>
<td height="24" class="bodyText">
<div align="center">
<bean:message key="knowlegeshare.search.source.type" />
<%--<html:select property="filetype">
<logic:iterate id="TYPE_NAME" name="TypeNameSupply">
<option
value="<bean:write name="TYPE_NAME" property="value"/>">
<bean:write name="TYPE_NAME" property="value" />
</option>
</logic:iterate>
</html:select>
<html:text name="source" property="source"></html:text>--%>
<br>
</div>
</td>
</tr>

<tr>
<td class="bodyText">
<div align="center">
<input type="submit" name="Submit"
value='<bean:message key="knowlegeshare.button.search"/>' />
</div>
</td>
</tr>
</table>

</td>
<td width="55">
<img src=" img/mm_spacer.gif" alt="" width="50" height="1"
border="0" />
</td>
<td width="180" valign="top">
<br />
</td>
<td width="11">
 
</td>
</tr>
<tr>
<td width="165">
 
</td>
<td width="50">
 
</td>
<td width="517">
 
</td>
<td width="55">
 
</td>
<td width="180">
 
</td>
<td width="11">
 
</td>
</tr>
</table>
</body>
</html>
为什么我只要一用<html:``>这样的标签就报上面的那个错,但是我别的页面用没有一点事,?
请问下,这是什么原因?



...全文
1232 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
kingofvc 2007-06-23
  • 打赏
  • 举报
回复
<html:link 没有class属性
PyTorch版的YOLOv5是轻量而高性能的实时目标检测方法。利用YOLOv5训练完自己的数据集后,如何向大众展示并提供落地的服务呢?   本课程将提供相应的解决方案,具体讲述如何使用Web应用程序框架Flask进行YOLOv5的Web应用部署。用户可通过客户端浏览器上传图片,经服务器处理后返回图片检测数据并在浏览器中绘制检测结果。   本课程的YOLOv5使用ultralytics/yolov5,在Ubuntu系统上做项目演示,并提供在Windows系统上的部署方式文档。 本项目采取前后端分离的系统架构和开发方式,减少前后端的耦合。课程包括:YOLOv5的安装、 Flask的安装、YOLOv5的检测API接口python代码、 Flask的服务程序的python代码、前端html代码、CSS代码、Javascript代码、系统部署演示、生产系统部署建议等。   本人推出了有关YOLOv5目标检测的系列课程。请持续关注该系列的其它视频课程,包括:《YOLOv5(PyTorch)目标检测实战:训练自己的数据集》Ubuntu系统 https://edu.csdn.net/course/detail/30793 Windows系统 https://edu.csdn.net/course/detail/30923 《YOLOv5(PyTorch)目标检测:原理与源码解析》https://edu.csdn.net/course/detail/31428 《YOLOv5(PyTorch)目标检测实战:Flask Web部署》https://edu.csdn.net/course/detail/31087 《YOLOv5(PyTorch)目标检测实战:TensorRT加速部署》https://edu.csdn.net/course/detail/32303

62,616

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧