找高手帮忙解决实质性问题!
当我在JSP表头加载STRUTS标签库时,不能保存....
我在点了保存以后,跳出了一个错误提示框,错误的title是错误,错误的message是保存失败:null,错误类型是严重,错误生成了一个按钮是确定按钮,这就是错误的一些信息,由于不方便截图,大致就这样了,希望高手能够指教.
我的环境都已经配置好了,jdk,tomcat都配置好了,我eclipse用的是3.0.1 jdk是1.5 tomcat 是5.0的,环境是xp中文的:
以下是出错代码:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@page language="java" contentType="text/html; charset=gb2312" %>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<html>
<head>
<title>用户登陆注册</title>
</head>
<body>
<center>
<html:form action="/userinfo/login">
<p>用户名:<html:text property="username" size="10" /><br>
密 码:<html:password property="password" size="10" /><br>
</p>
<div align="center">
<html:submit value=" 登录 "></html:submit>
<html:link page="/register.jsp" >注册</html:link>
</div>
</html:form>
</center>
</body>
</html>
我加了加载标签库的语句就出错了,<%@ taglib uri="/tags/struts-html" prefix="html"%>,没有加的时候是对滴.
<!-- 配置Structs标签库 -->
<taglib>
<taglib-uri>/tags/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-html</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-nested</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-nested.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-tiles</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-tiles.tld</taglib-location>
</taglib>
这个是我的 WEB.XML配置