在制作增加新闻的时间出现的了以下页面提示问题:
HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 140 in the jsp file: /wxfy/nfews_add.jsp
newslist_numRows cannot be resolved
137: <%
138: int Repeat1__numRows = 10;
139: int Repeat1__index = 0;
140: newslist_numRows += Repeat1__numRows;
141: %>
142: <%
143: // *** Recordset Stats, Move To Record, and Go To Record: declare stats variables
An error occurred at line: 149 in the jsp file: /wxfy/nfews_add.jsp
newslist_isEmpty cannot be resolved
146: int newslist_last  = 1;
147: int newslist_total = -1;
148: 
149: if (newslist_isEmpty) {
150:   newslist_total = newslist_first = newslist_last = 0;
151: }
152: 
An error occurred at line: 154 in the jsp file: /wxfy/nfews_add.jsp
newslist_numRows cannot be resolved
151: }
152: 
153: //set the number of rows displayed on this page
154: if (newslist_numRows == 0) {
155:   newslist_numRows = 1;
156: }
157: %>
An error occurred at line: 155 in the jsp file: /wxfy/nfews_add.jsp
newslist_numRows cannot be resolved
152: 
153: //set the number of rows displayed on this page
154: if (newslist_numRows == 0) {
155:   newslist_numRows = 1;
156: }
157: %>
158: <%
An error occurred at line: 161 in the jsp file: /wxfy/nfews_add.jsp
newslist cannot be resolved
158: <%
159: // *** Move To Record and Go To Record: declare variables
160: 
161: ResultSet MM_rs = newslist;
162: int       MM_rsCount = newslist_total;
163: int       MM_size = newslist_numRows;
164: String    MM_uniqueCol = "";
An error occurred at line: 163 in the jsp file: /wxfy/nfews_add.jsp
newslist_numRows cannot be resolved
160: 
161: ResultSet MM_rs = newslist;
162: int       MM_rsCount = newslist_total;
163: int       MM_size = newslist_numRows;
164: String    MM_uniqueCol = "";
165:           MM_paramName = "";
166: int       MM_offset = 0;
An error occurred at line: 165 in the jsp file: /wxfy/nfews_add.jsp
MM_paramName cannot be resolved
162: int       MM_rsCount = newslist_total;
163: int       MM_size = newslist_numRows;
164: String    MM_uniqueCol = "";
165:           MM_paramName = "";
166: int       MM_offset = 0;
167: boolean   MM_atTotal = false;
168: boolean   MM_paramIsDefined = (MM_paramName.length() != 0 && request.getParameter(MM_paramName) != null);
An error occurred at line: 168 in the jsp file: /wxfy/nfews_add.jsp
MM_paramName cannot be resolved
165:           MM_paramName = "";
166: int       MM_offset = 0;
167: boolean   MM_atTotal = false;
168: boolean   MM_paramIsDefined = (MM_paramName.length() != 0 && request.getParameter(MM_paramName) != null);
169: %>
170: <%
171: // *** Move To Record: handle 'index' or 'offset' parameter
An error occurred at line: 168 in the jsp file: /wxfy/nfews_add.jsp
MM_paramName cannot be resolved
165:           MM_paramName = "";
166: int       MM_offset = 0;
167: boolean   MM_atTotal = false;
168: boolean   MM_paramIsDefined = (MM_paramName.length() != 0 && request.getParameter(MM_paramName) != null);
169: %>
170: <%
171: // *** Move To Record: handle 'index' or 'offset' parameter
An error occurred at line: 192 in the jsp file: /wxfy/nfews_add.jsp
newslist_hasData cannot be resolved
189: 
190:   //move the cursor to the selected record
191:   int i;
192:   for (i=0; newslist_hasData && (i < MM_offset || MM_offset == -1); i++) {
193:     newslist_hasData = MM_rs.next();
194:   }
195:   if (!newslist_hasData) MM_offset = i;  // set MM_offset to the last possible record
An error occurred at line: 193 in the jsp file: /wxfy/nfews_add.jsp
newslist_hasData cannot be resolved
190:   //move the cursor to the selected record
191:   int i;
192:   for (i=0; newslist_hasData && (i < MM_offset || MM_offset == -1); i++) {
193:     newslist_hasData = MM_rs.next();
194:   }
195:   if (!newslist_hasData) MM_offset = i;  // set MM_offset to the last possible record
196: }
An error occurred at line: 195 in the jsp file: /wxfy/nfews_add.jsp
newslist_hasData cannot be resolved
192:   for (i=0; newslist_hasData && (i < MM_offset || MM_offset == -1); i++) {
193:     newslist_hasData = MM_rs.next();
194:   }
195:   if (!newslist_hasData) MM_offset = i;  // set MM_offset to the last possible record
196: }
197: %>
198: <%
An error occurred at line: 205 in the jsp file: /wxfy/nfews_add.jsp
newslist_hasData cannot be resolved
202: 
203:   // walk to the end of the display range for this page
204:   int i;
205:   for (i=MM_offset; newslist_hasData && (MM_size < 0 || i < MM_offset + MM_size); i++) {
206:     newslist_hasData = MM_rs.next();
207:   }
208: 

解决方案 »

  1.   


    An error occurred at line: 206 in the jsp file: /wxfy/nfews_add.jsp
    newslist_hasData cannot be resolved
    203:   // walk to the end of the display range for this page
    204:   int i;
    205:   for (i=MM_offset; newslist_hasData && (MM_size < 0 || i < MM_offset + MM_size); i++) {
    206:     newslist_hasData = MM_rs.next();
    207:   }
    208: 
    209:   // if we walked off the end of the recordset, set MM_rsCount and MM_size
    An error occurred at line: 210 in the jsp file: /wxfy/nfews_add.jsp
    newslist_hasData cannot be resolved
    207:   }
    208: 
    209:   // if we walked off the end of the recordset, set MM_rsCount and MM_size
    210:   if (!newslist_hasData) {
    211:     MM_rsCount = i;
    212:     if (MM_size < 0 || MM_size > MM_rsCount) MM_size = MM_rsCount;
    213:   }
    An error occurred at line: 216 in the jsp file: /wxfy/nfews_add.jsp
    newslist_hasData cannot be resolved
    213:   }
    214: 
    215:   // if we walked off the end, set the offset based on page size
    216:   if (!newslist_hasData && !MM_paramIsDefined) {
    217:     if (MM_offset > MM_rsCount - MM_size || MM_offset == -1) { //check if past end or last
    218:       if (MM_rsCount % MM_size != 0)  //last page has less records than MM_size
    219:         MM_offset = MM_rsCount - MM_rsCount % MM_size;
    An error occurred at line: 226 in the jsp file: /wxfy/nfews_add.jsp
    newslist cannot be resolved
    223:   }
    224: 
    225:   // reset the cursor to the beginning
    226:   newslist.close();
    227:   newslist = Statementnewslist.executeQuery();
    228:   newslist_hasData = newslist.next();
    229:   MM_rs = newslist;
    An error occurred at line: 227 in the jsp file: /wxfy/nfews_add.jsp
    newslist cannot be resolved
    224: 
    225:   // reset the cursor to the beginning
    226:   newslist.close();
    227:   newslist = Statementnewslist.executeQuery();
    228:   newslist_hasData = newslist.next();
    229:   MM_rs = newslist;
    230: 
    An error occurred at line: 227 in the jsp file: /wxfy/nfews_add.jsp
    Statementnewslist cannot be resolved
    224: 
    225:   // reset the cursor to the beginning
    226:   newslist.close();
    227:   newslist = Statementnewslist.executeQuery();
    228:   newslist_hasData = newslist.next();
    229:   MM_rs = newslist;
    230: 
    An error occurred at line: 228 in the jsp file: /wxfy/nfews_add.jsp
    newslist_hasData cannot be resolved
    225:   // reset the cursor to the beginning
    226:   newslist.close();
    227:   newslist = Statementnewslist.executeQuery();
    228:   newslist_hasData = newslist.next();
    229:   MM_rs = newslist;
    230: 
    231:   // move the cursor to the selected record
    An error occurred at line: 228 in the jsp file: /wxfy/nfews_add.jsp
    newslist cannot be resolved
    225:   // reset the cursor to the beginning
    226:   newslist.close();
    227:   newslist = Statementnewslist.executeQuery();
    228:   newslist_hasData = newslist.next();
    229:   MM_rs = newslist;
    230: 
    231:   // move the cursor to the selected record
    An error occurred at line: 229 in the jsp file: /wxfy/nfews_add.jsp
    newslist cannot be resolved
    226:   newslist.close();
    227:   newslist = Statementnewslist.executeQuery();
    228:   newslist_hasData = newslist.next();
    229:   MM_rs = newslist;
    230: 
    231:   // move the cursor to the selected record
    232:   for (i=0; newslist_hasData && i < MM_offset; i++) {
    An error occurred at line: 232 in the jsp file: /wxfy/nfews_add.jsp
    newslist_hasData cannot be resolved
    229:   MM_rs = newslist;
    230: 
    231:   // move the cursor to the selected record
    232:   for (i=0; newslist_hasData && i < MM_offset; i++) {
    233:     newslist_hasData = MM_rs.next();
    234:   }
    235: }
    An error occurred at line: 233 in the jsp file: /wxfy/nfews_add.jsp
    newslist_hasData cannot be resolved
    230: 
    231:   // move the cursor to the selected record
    232:   for (i=0; newslist_hasData && i < MM_offset; i++) {
    233:     newslist_hasData = MM_rs.next();
    234:   }
    235: }
    236: %>
    An error occurred at line: 256 in the jsp file: /wxfy/nfews_add.jsp
    MM_keepBoth cannot be resolved
    253: 
    254: String MM_moveFirst,MM_moveLast,MM_moveNext,MM_movePrev;
    255: {
    256:   String MM_keepMove = MM_keepBoth;  // keep both Form and URL parameters for moves
    257:   String MM_moveParam = "index=";
    258: 
    259:   // if the page has a repeated region, remove 'offset' from the maintained parameters
    Stacktrace:
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
    org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.看不懂是什么意思,请高手帮助,怎么解决?
      

  2.   

    不会java,而且还贴这么长,头晕哦