几个错误帮忙卡下呗
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 12 in the jsp file: /abcd.jsp
Calendar cannot be resolved to a type
9: String ls_lasttime="";
10: String ls_now="";
11: String content="";
12: Calendar cal=Calendar.getInstance();
13: ls_now=cal.get(Calendar.DAY_OF_MONTH);
14:
15: String cantwrite="";
An error occurred at line: 12 in the jsp file: /abcd.jsp
Calendar cannot be resolved
9: String ls_lasttime="";
10: String ls_now="";
11: String content="";
12: Calendar cal=Calendar.getInstance();
13: ls_now=cal.get(Calendar.DAY_OF_MONTH);
14:
15: String cantwrite="";
An error occurred at line: 13 in the jsp file: /abcd.jsp
Calendar.DAY_OF_MONTH cannot be resolved to a type
10: String ls_now="";
11: String content="";
12: Calendar cal=Calendar.getInstance();
13: ls_now=cal.get(Calendar.DAY_OF_MONTH);
14:
15: String cantwrite="";
16: String filename = request.getRealPath(lsfn_time);
An error occurred at line: 24 in the jsp file: /abcd.jsp
IOException cannot be resolved to a type
21: {
22: f.createNewFile();
23: }
24: catch(IOException e)
25: {
26: cantwrite="y";
27: }
An error occurred at line: 41 in the jsp file: /abcd.jsp
The operator || is undefined for the argument type(s) boolean, String
38: fr.close();
39: }
40:
41: if(ls_lasttime!=ls_now || request.getParameter("lsreload"))
42: {
43: try
44: {
An error occurred at line: 45 in the jsp file: /abcd.jsp
PrintWriter cannot be resolved to a type
42: {
43: try
44: {
45: PrintWriter pw = new PrintWriter(new FileOutputStream(filename));
46: pw.println(ls_now);
47: pw.close();
48: }
An error occurred at line: 45 in the jsp file: /abcd.jsp
PrintWriter cannot be resolved to a type
42: {
43: try
44: {
45: PrintWriter pw = new PrintWriter(new FileOutputStream(filename));
46: pw.println(ls_now);
47: pw.close();
48: }
An error occurred at line: 45 in the jsp file: /abcd.jsp
FileOutputStream cannot be resolved to a type
42: {
43: try
44: {
45: PrintWriter pw = new PrintWriter(new FileOutputStream(filename));
46: pw.println(ls_now);
47: pw.close();
48: }
An error occurred at line: 49 in the jsp file: /abcd.jsp
IOException cannot be resolved to a type
46: pw.println(ls_now);
47: pw.close();
48: }
49: catch(IOException e)
50: {
51: cantwrite="y";
52: content="error writing file.";
An error occurred at line: 71 in the jsp file: /abcd.jsp
Duplicate local variable filename
68:
69: if(cantwrite!="y")
70: {
71: String filename = request.getRealPath(lsfn_content);
72: java.io.File f = new java.io.File(filename);
73: if(!f.exists())
74: {
An error occurred at line: 72 in the jsp file: /abcd.jsp
Duplicate local variable f
69: if(cantwrite!="y")
70: {
71: String filename = request.getRealPath(lsfn_content);
72: java.io.File f = new java.io.File(filename);
73: if(!f.exists())
74: {
75: try
An error occurred at line: 79 in the jsp file: /abcd.jsp
IOException cannot be resolved to a type
76: {
77: f.createNewFile();
78: }
79: catch(IOException e)
80: {
81: cantwrite="y";
82: }
An error occurred at line: 86 in the jsp file: /abcd.jsp
PrintWriter cannot be resolved to a type
83: }
84: try
85: {
86: PrintWriter pw = new PrintWriter(new FileOutputStream(filename));
87: pw.println(content);
88: pw.close();
89: }
An error occurred at line: 86 in the jsp file: /abcd.jsp
PrintWriter cannot be resolved to a type
83: }
84: try
85: {
86: PrintWriter pw = new PrintWriter(new FileOutputStream(filename));
87: pw.println(content);
88: pw.close();
89: }
An error occurred at line: 86 in the jsp file: /abcd.jsp
FileOutputStream cannot be resolved to a type
83: }
84: try
85: {
86: PrintWriter pw = new PrintWriter(new FileOutputStream(filename));
87: pw.println(content);
88: pw.close();
89: }
An error occurred at line: 90 in the jsp file: /abcd.jsp
IOException cannot be resolved to a type
87: pw.println(content);
88: pw.close();
89: }
90: catch(IOException e)
91: {
92: cantwrite="y";
93: }