您的位置:首页 > 产品设计 > UI/UE

/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
我的问题是大家最容易犯的,就是马虎大意,少写了一个 “/” 在第十行; 但是报的这个错误,很奇怪。所以报错的时候,极有可能是书写错误。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: