I put my classes in the jsm-default/classes directory. These are not
dynamically loaded, but then beans should be a bit more stable than JSPs
themselves. You can put regular servlets where they've always been. I use
then use regular package names per Java standards, so my classes all begin
with com.myeastside. You can reference them (check the docs) by importing
the classes into your JSP. There is a standard way to specify such imports.
In my own case, the package name comes in the USEBEAN statement: <USEBEAN
NAME="myClass" TYPE="com.myeastside.jsp.util.myClass" LIFESPAN="session">,
and if I need to, I just use the full package name in my JSP, such as <%
com.myeastside.jsp.MyBeanList beanList = ...%>
I found that putting them in the area when there are dynamically loaded
(i.e. the servlets directory) didn't work well, and the beans had all sorts
of bugs assocaited with that scheme because of the various class loaders
that are being used by JRun.
David
----- Original Message -----
From: Ralph Eddy <[EMAIL PROTECTED]>
To: 'David Wall' <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, June 02, 1999 11:59 AM
Subject: RE: Location of Classes called by JSP
> Thanks.
> I am using JRun.
> I placed my classes in the jsp folder so that JRun's dynamically created
> servlets can find my classes.
> Because my classes are in jsp folder I had to start the class with
"package
> jsp;"
>
> Where else can I put my classes?
> Where would the folder for my classes be located and how do I reference
the
> package in the header of my class?
> How do I reference these classes in a jsp page?
> Referencing the classes in the jsp page is my biggest problem.
>
> Very much appreciated.
>
> Ralph Eddy
> 415-383-4924
> fax) 415-383-6560
> mailto:[EMAIL PROTECTED]
>
>
> > -----Original Message-----
> > From: David Wall [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 02, 1999 9:54 AM
> > To: Ralph Eddy; [EMAIL PROTECTED]
> > Subject: Re: Location of Classes called by JSP
> >
> >
> > It may depend on which JSP engine you are using, but JRun uses the jsp
> > package for its own dynamically generated servlets. So, you
> > should avoid
> > using a 'jsp' package name, except perhaps if you've put them
> > further down
> > the package name, such as com.mydomain.jsp.
> >
> > David
> >
> >
> >
>
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".