Estou iniciando meus trabalhos com Jsp, Servelts, Javabeans + Tomcat
Tive alguns probleminhas com o jsp e a servlet mais foi tudo ok, mas quando eu tento usar Java beans ele da um erro de compilacao nao sei o que é
Segue o erro que aparece no tomcat e um codigo de exemplo que estou testando esse erro
HTTP Status 500 -
type Exception report
message
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: /index.jsp
Generated servlet error:
C:\Documents and Settings\Eduardo.netbeans\5.0\jakarta-tomcat-5.5.9_base\work\Catalina\localhost\WebApplication\org\apache\jsp\index_jsp.java:48: cannot find symbol
symbol : class TesteBean
location: class org.apache.jsp.index_jsp
TesteBean Teste = null;
^
An error occurred at line: 7 in the jsp file: /index.jsp
Generated servlet error:
C:\Documents and Settings\Eduardo.netbeans\5.0\jakarta-tomcat-5.5.9_base\work\Catalina\localhost\WebApplication\org\apache\jsp\index_jsp.java:50: cannot find symbol
symbol : class TesteBean
location: class org.apache.jsp.index_jsp
Teste = (TesteBean) _jspx_page_context.getAttribute(“Teste”, PageContext.PAGE_SCOPE);
^
An error occurred at line: 7 in the jsp file: /index.jsp
Generated servlet error:
C:\Documents and Settings\Eduardo.netbeans\5.0\jakarta-tomcat-5.5.9_base\work\Catalina\localhost\WebApplication\org\apache\jsp\index_jsp.java:52: cannot find symbol
symbol : class TesteBean
location: class org.apache.jsp.index_jsp
Teste = new TesteBean();
^
3 errors