Y
yudi177
Unregistered / Unconfirmed
GUEST, unregistred user!
你用的环境是jdk1.3+Tomcat 4.0 环境变量设置如下:
CLASSPATH c:/JDK1.3/LIB/dt.JAR;c:/JDK1.3/LIB/TOOLS.JAR;c:/JDK1.3/BIN;d:/class
java_home c:/jdk1.3
也在建立了一个虚拟目录zjf 对应目录为 d:/jsp
javabBean 源程序如下:
package text;
import java.sql.*;
public class abc {
} 注:已经编译通过 均放在 d:/class 下
jsp 源程序如下:
<%@ page language="java" %>
<jsp:useBean id="abc" scope="application" class="class.abc"/>
注:放在d:/jsp 下(虚拟目录)
错误如下:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 3 in the jsp file: /a1.jsp
Generated servlet error:
C:/Program Files/Apache Tomcat 4.0/work/Standalone/localhost/zjf/a1$jsp.java:60: 需要标识符。
class.abc abc = null;
^
An error occurred at line: 3 in the jsp file: /a1.jsp
Generated servlet error:
C:/Program Files/Apache Tomcat 4.0/work/Standalone/localhost/zjf/a1$jsp.java:61: 需要 '}'。
boolean _jspx_specialabc = false;
^
An error occurred at line: 3 in the jsp file: /a1.jsp
Generated servlet error:
C:/Program Files/Apache Tomcat 4.0/work/Standalone/localhost/zjf/a1$jsp.java:62: 需要类型。
synchronized (application) {
^
3 个错误
请指教,谢谢
CLASSPATH c:/JDK1.3/LIB/dt.JAR;c:/JDK1.3/LIB/TOOLS.JAR;c:/JDK1.3/BIN;d:/class
java_home c:/jdk1.3
也在建立了一个虚拟目录zjf 对应目录为 d:/jsp
javabBean 源程序如下:
package text;
import java.sql.*;
public class abc {
} 注:已经编译通过 均放在 d:/class 下
jsp 源程序如下:
<%@ page language="java" %>
<jsp:useBean id="abc" scope="application" class="class.abc"/>
注:放在d:/jsp 下(虚拟目录)
错误如下:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 3 in the jsp file: /a1.jsp
Generated servlet error:
C:/Program Files/Apache Tomcat 4.0/work/Standalone/localhost/zjf/a1$jsp.java:60: 需要标识符。
class.abc abc = null;
^
An error occurred at line: 3 in the jsp file: /a1.jsp
Generated servlet error:
C:/Program Files/Apache Tomcat 4.0/work/Standalone/localhost/zjf/a1$jsp.java:61: 需要 '}'。
boolean _jspx_specialabc = false;
^
An error occurred at line: 3 in the jsp file: /a1.jsp
Generated servlet error:
C:/Program Files/Apache Tomcat 4.0/work/Standalone/localhost/zjf/a1$jsp.java:62: 需要类型。
synchronized (application) {
^
3 个错误
请指教,谢谢