/doreg.jsp (line: 11, column: 0) Expecting "jsp:param" standard action with "name" and "value" attributes 错误解决办法
2016-04-24 19:44
751 查看
运行我的jsp文件的时候,报了下面的错误
type Exception report
message /doreg.jsp (line: 11, column: 0) Expecting "jsp:param" standard action with "name" and "value" attributes
description The server encountered an internal error that prevented it from fulfilling this request.
我觉得可能缺了这一行,于是就上源代码里找 "line:11" 源代码如下:
<%@ page language="java" contentType="text/html; charset=gb2312" %>
<jsp:useBean id= "us" class="com.Bean.UserInfo" scope="request"/>
<jsp:setProperty name= "us" property = "*"/>
<body>
<%
String name=us.getName();
String job= us.getJob();
if(name.equals("") || job.equals("")){
%>
<jsp:forward page="/False.jsp"> //10 行
<%} else{ %> //11行
<jsp:forward page="/success.jsp"/>
<% } %>
</body>
</html>
由于不知道怎么添加这一行,就上网找了找。
我觉得有几个比较靠谱的解决方法(虽然和我的都不一样)贴出链接如下:
1.JSP动作标志后面不能有注释
http://blog.sina.com.cn/s/blog_8acf1be1010179g9.html
2.JSP动作标志简化
http://stackoverflow.com/questions/2092665/jsp-expecting-jspparam-standard-action-with-name-and-value-attributes
3当标签没有配对参数时,配对标签不能换行
http://blog.csdn.net/jeamking/article/details/6296919
我的问题是大家最容易犯的,就是马虎大意,少写了一个 “/” 在第十行; 但是报的这个错误,很奇怪。所以报错的时候,极有可能是书写错误。
type Exception report
message /doreg.jsp (line: 11, column: 0) Expecting "jsp:param" standard action with "name" and "value" attributes
description The server encountered an internal error that prevented it from fulfilling this request.
我觉得可能缺了这一行,于是就上源代码里找 "line:11" 源代码如下:
<%@ page language="java" contentType="text/html; charset=gb2312" %>
<jsp:useBean id= "us" class="com.Bean.UserInfo" scope="request"/>
<jsp:setProperty name= "us" property = "*"/>
<body>
<%
String name=us.getName();
String job= us.getJob();
if(name.equals("") || job.equals("")){
%>
<jsp:forward page="/False.jsp"> //10 行
<%} else{ %> //11行
<jsp:forward page="/success.jsp"/>
<% } %>
</body>
</html>
由于不知道怎么添加这一行,就上网找了找。
我觉得有几个比较靠谱的解决方法(虽然和我的都不一样)贴出链接如下:
1.JSP动作标志后面不能有注释
http://blog.sina.com.cn/s/blog_8acf1be1010179g9.html
2.JSP动作标志简化
http://stackoverflow.com/questions/2092665/jsp-expecting-jspparam-standard-action-with-name-and-value-attributes
3当标签没有配对参数时,配对标签不能换行
http://blog.csdn.net/jeamking/article/details/6296919
我的问题是大家最容易犯的,就是马虎大意,少写了一个 “/” 在第十行; 但是报的这个错误,很奇怪。所以报错的时候,极有可能是书写错误。
相关文章推荐
- 第三篇 Entity Framework Plus 之 Query Cache
- ACM学习历程—HDU5667 Sequence(数论 && 矩阵乘法 && 快速幂)
- request请求中有点号
- acm 2 1025 Sequence two
- acm 2 1024 Sequence one
- response.sendRedirect()与request.getRequestDispatcher().forward()区别
- Animation and Transitions in Qt Quick | Qt Quick 5
- 1012 Rescue
- 60. Permutation Sequence
- stringbuffer和stringbuilder的区别
- Easyui之datagrid实现点击单元格修改单元格背景颜色
- PHP中include和require
- Leetcode Increasing Triplet Subsequence
- [UIPasteboard generalPasteboard]剪贴板的使用
- AmazeUI 模态框封装
- flex build 4 三个命名空间fx,mx,s
- IOS本地推送通知的一些属性 UILocalNotification
- 软件设计模式——建造者模式(Builder)
- 码农小汪-SQL 图形界面设计约束,unqiue,check Default Foreign
- 利用uitouch简单的实现了微信cell效果