You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Grant <da...@busydata.com> on 2004/03/02 02:49:52 UTC

JSP import problem

Hi All,

I am having a problem importing a package into my jsp file. The package is
called mytest.jar

The following is my jsp file

-----------------
<%@ page
import = "java.io.*"
import = "java.lang.*"
import = "java.util.*"
import = "mytest.*"
%>

<%

	Mytest mytest = new mytest("123123", "javatest", "test");

-----------------

I can't get setting the Mytest instance. I get an error complaining about it
cannot compile because:  "package mytest does not exist"

I have put the mytest.jar file in my WEB-INF/lib directory. I have also set
the CLASSPATH to include
the mytest.jar file specifically.

Any ideas?

If this is the incorrect list, can someone point me to the correct list to
post my query

Thanks


Emma Grant
Database and Website Developer

Ph: 3252 1205
Email: emmagrant@busydata.com
-----------------------------
6/94 Commercial Rd
Newstead, Q 4006


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: JSP import problem

Posted by Parsons Technical Services <pa...@earthlink.net>.
David,

1. What is the package line say in the classes contained in the mytest.jar?

2. What are the class names contained in the mytest.jar?

3. Have you checked spelling and capitalization?

Just checking the basics first.

Doug

www.parsonstechnical.com


----- Original Message ----- 
From: "David Grant" <da...@busydata.com>
To: <to...@jakarta.apache.org>
Sent: Monday, March 01, 2004 8:49 PM
Subject: JSP import problem


Hi All,

I am having a problem importing a package into my jsp file. The package is
called mytest.jar

The following is my jsp file

-----------------
<%@ page
import = "java.io.*"
import = "java.lang.*"
import = "java.util.*"
import = "mytest.*"
%>

<%

Mytest mytest = new mytest("123123", "javatest", "test");

-----------------

I can't get setting the Mytest instance. I get an error complaining about it
cannot compile because:  "package mytest does not exist"

I have put the mytest.jar file in my WEB-INF/lib directory. I have also set
the CLASSPATH to include
the mytest.jar file specifically.

Any ideas?

If this is the incorrect list, can someone point me to the correct list to
post my query

Thanks


Emma Grant
Database and Website Developer

Ph: 3252 1205
Email: emmagrant@busydata.com
-----------------------------
6/94 Commercial Rd
Newstead, Q 4006


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org