The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Re : classpath jsp

Posted by Pierre on June 22, 2001 at 3:06 AM

>Thank u very much. But, what if i am not compiling the java >program and instead embedding a java code in a JSP page, and >that java code has to use that class? i guess I need to change >the class path and then use the import statement, right?
the import statement reflect indicates
the package in wich the class you want to use is.
The classpath indicates where java should surch for the class.
So where you want to use a class wich indicates package foo;
you should put import foo.*;

The rest (classpath or else) is configuring your tool.
For JSP from what i remember you have to put the compiled
class an the .jsp in some directories in xml config files.
Sorry but i can't be more specific


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us