当我在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配置
以下是出错代码:
<!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配置
解决方案 »
- Hibernate 的配置一个问题,基本配置
- struts中关于Action提取数据的问题
- JSP报错http status 500 ,请帮忙解决,谢谢
- 两个整数相除得到百分数,应该怎么做呀? 在线等
- 急啊,各位高手帮帮忙啊,谢谢了……
- jsp页面显示数据(急在线)
- 困惑,用java分析xml文件,一般用哪个包?
- 谁能解决JSP的这个问题,好难,想了很长时间?
- 用javamail发邮件,但是为什么会出错呢?有谁能不能把你们写邮件的代码贴出来呢?还有就是邮件群发的问题,不知道该怎么办
- 我的程序经常出现java.lang.NullPointerException,怎么样来防止出现这种错误?
- 关于登录设置cookie。。。
- 四天了,,,,我快疯了啊!~!,,哪位大侠在“虚拟主机”上成功配置FCKeditor上传图片的经验,,帮帮我吧,我不行了
腰缠70元到月入近10万
http://www.hunbei.com.cn/Article/ArticleShow.asp?ArticleID=453IT工程师 毕业4年我年薪涨到30万
http://www.hunbei.com.cn/Article/ArticleShow.asp?ArticleID=51126岁青年坐拥千万域名资产 从小玩家变成CEO
http://www.hunbei.com.cn/Article/ArticleShow.asp?ArticleID=515程序员的酸甜苦辣:告别Coding
http://www.hunbei.com.cn/Article/ArticleShow.asp?ArticleID=341从月薪3500到700万(一)
http://www.hunbei.com.cn/Article/ArticleShow.asp?ArticleID=170网络草根月赚3000的十种方法
http://www.hunbei.com.cn/Article/ArticleShow.asp?ArticleID=517如果我是女的 我肯定不会嫁给做网站的
http://www.hunbei.com.cn/Article/ArticleShow.asp?ArticleID=512