/doreg.jsp (line: 11, column: 0) Expecting "jsp:param" standard action with "name" and "value" attributes 錯誤解決辦法


運行我的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

 

我的問題是大家最容易犯的,就是馬虎大意,少寫了一個   “/”    在第十行; 但是報的這個錯誤,很奇怪。所以報錯的時候,極有可能是書寫錯誤。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM