Tonmcat报错代码如下:
type Exception report
message Unable to compile class for JSP:
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: 7 in the jsp file: /article.jspsql cannot be resolved to a variable
4:private void tree(Set<Article> articles,Connection conn,int id ,int grsde) {
5: String aql = "select * from article where pid =" + id;
6: Statement stm = DB.createStm(conn);
7: ResultSet rs = DB.createRs(stm,sql);
8: try{
9: while(rs.next()){
10: Article a = new Article();
An error occurred at line: 19 in the jsp file: /article.jspgrade cannot be resolved to a variable
16: a.setPdate(rs.getTimestamp("pdate"));
17: articles.add(a);18: if(!a.isLeaf()) {
19: tree(articles , conn , a.getId() , grade+1);
20: }
21: }
22: }catch(SQLException e) {
An error occurred at line: 105 in the jsp file: /article.jsparticles cannot be resolved
102: <tbody>
103:
104: <%
105: for(Iterator<Article> it = articles.iterator();it.hasNext();) {
106: Article a = it.next();
107: %>
108: <tr class="jive-even">
type Exception report
message Unable to compile class for JSP:
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: 7 in the jsp file: /article.jspsql cannot be resolved to a variable
4:private void tree(Set<Article> articles,Connection conn,int id ,int grsde) {
5: String aql = "select * from article where pid =" + id;
6: Statement stm = DB.createStm(conn);
7: ResultSet rs = DB.createRs(stm,sql);
8: try{
9: while(rs.next()){
10: Article a = new Article();
An error occurred at line: 19 in the jsp file: /article.jspgrade cannot be resolved to a variable
16: a.setPdate(rs.getTimestamp("pdate"));
17: articles.add(a);18: if(!a.isLeaf()) {
19: tree(articles , conn , a.getId() , grade+1);
20: }
21: }
22: }catch(SQLException e) {
An error occurred at line: 105 in the jsp file: /article.jsparticles cannot be resolved
102: <tbody>
103:
104: <%
105: for(Iterator<Article> it = articles.iterator();it.hasNext();) {
106: Article a = it.next();
107: %>
108: <tr class="jive-even">










