Ich weis is jetzt nix Grossartiges, aber ich will einfach mal weng ein Gefühl dafür bekommen was die Fehlermeldung bedeuten und wie ich den Fehler beseitige.
________________________________________________
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 1 in the jsp file: /test.jsp
Generated servlet error:
/srv/www/tomcat5/base/work/Catalina/localhost/test/org/apache/jsp/test_jsp.java:42: cannot resolve symbol
symbol : class Test
location: class org.apache.jsp.test_jsp
Test test = null;
__________________________________________________
Das ist jetzt nur ein Auszug, hab noch mehr von "An error occurred..." (-:
Meine Test.java:
Meine test.jsp:
URL: localhost:8080/test/test.jsp
Ordnerstruktur:
________________________________________________
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 1 in the jsp file: /test.jsp
Generated servlet error:
/srv/www/tomcat5/base/work/Catalina/localhost/test/org/apache/jsp/test_jsp.java:42: cannot resolve symbol
symbol : class Test
location: class org.apache.jsp.test_jsp
Test test = null;
__________________________________________________
Das ist jetzt nur ein Auszug, hab noch mehr von "An error occurred..." (-:
Meine Test.java:
Code:
public class Test
{
private int zahl;
public int getZahl()
{
return zahl;
}
public void setZahl(int param)
{
this.zahl = param;
}
}
Meine test.jsp:
Code:
<jsp:useBean id="test" class="Test">
<jsp:setProperty name="test" property="zahl" value="21" />
</jsp:useBean>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test</title>
</head>
<body>
<jsp:getProperty name="test" property="zahl" />
</body>
</html>
URL: localhost:8080/test/test.jsp
Ordnerstruktur:
Code:
/webapps/
/test/
/test.jsp
/WEB-INF/
/classes/
/Test.class
/lib/
/catalina-root.jar
/web.xml