Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: How to Import java classes in a jsp file?

Tim Funk

2004-01-23

Replies:

http://jakarta.apache.org/tomcat/faq/classnotfound.html

-Tim

Apostolidis Apostolos wrote:
>   Hi all!!I'm a newbie in Tomcat, and have a slight problem.
> I wrote a simple .jsp file, don't use any extra servlets, and want to
> create in the .jsp file an object belonging to a Dummy.java file class
> in it.
>
>   The error i get is the following :
>
> cannot resolve symbol
> symbol : class Dummy
> location: class org.apache.jsp.try_jsp
>    Dummy a = new Dummy(4, 2);
>
> I have added the TOMCAT_HOME/webapps/webapp-name/classes/ &
> TOMCAT_HOME/webapps/webapp-name/lib paths to the CLASSPATH variable.
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.