new to JSP
Posted on 2003-02-27
I have this problem and I think its a real simple one, but I dont know how to solve this. I have a JSP file as follows:
<%@ page language="java" %>
<jsp:useBean id="ts" class="Test" scope="session"/>
String name = request.getParameter( "command" );
I need to call on some functions (Methods) of another Java file (Class) from this JSP. As you can see that I have this
<jsp:useBean id="ts" class="Test" scope="session"/> tag. BUT IT DOESNT WORK !!!
I get the following error when I try to run it through a web browser:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 4 in the jsp file: /invoke.jsp
Generated servlet error:
[javac] Compiling 1 source file
C:\jakarta-tomcat-4.1.18\work\Standalone\localhost\Atos\invoke_jsp.java:44: cannot resolve symbol
symbol : class Test
location: class org.apache.jsp.invoke_jsp
Test ts = null;
and so on ....
I am running TOMCAT as my server and this class file "Test" I have it under the TOMCAT_HOME\webapps\TESTAPP\WEB-INF\classes directory.
What am I doing wrong ???
Thanks in advance for your help.