I put <%@ page import="com.cos.*" %> as you advised
but it doesn't work
I get this error:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 14 in the jsp file: /myapp/t.jsp
Generated servlet error:
TBean cannot be resolved or is not a type
An error...
Still have a problem.
I defined my TBean like this:
package com.cos;
public class TBean {
}
I compiled it to TBean.class
Then I put TBean.class to TOMCAT_HOME/webapps/MY_WEBAPP/WEB-INF/classes/com/cos
and in my jsp page I have
<%@ page language="java" contentType="text/html; charSet=UTF-8"...
Hi!
Tnx sedj for your reply.
Let me give some more details.
I want to use my class called TBean in my jsp page called t.jsp.
This class is not packed (is not a .jar file)
I get this error:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 13 in the...
Hi!
I use Tomcat 5.5 on WinXp HomeEd.
I cannot use my .class files in my jsp pages.
I tried several locations for the .class files:
{TomcatHome}\shared\classes\
and
{TomcatHome}\webapps\ROOT\MyApplication\WEB-INF\classes\
and
{TomcatHome}\common\classes\
and
{TomcatHome}\server\classes\
and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.