On 6/9/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> Any ideas how to import a user-defined class in JSP, I mean where to
> place the class file and is there anyother environment variable to set?
> I read somewhere that if you are using jdk 1.4 and above, you need to
> have package name for classes.  It said to Put your webappname class in
> a package, compile it and then import it like the following in your JSP
> file:  <%@ page import="packagename.WebAppName"%>
> 

You should grab some good book on programming JSP and Servlets.

    I assume you know Java.  As far as the error is concerned it don't
seem to be because of a class is not properly imported. The syntax for
importing class in JSP page is correct assuming WebAppName is the
class you are importing. The compiles class files in the proper
package structure is to be put in
$CATALINA_HOME/webapps/mywebapp/WEB-INF/classes folder. Then restart
Tomcat.

    You can find a sample web application in the
$CATALINA_HOME/webapps/examples folder.
-- 
rgds
Anto Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to