One thing to remember is that the "/servlet" part of the URL is not a
reference to an actual directory. It's just an alias telling the HTTP
server to forward the request to JRun and to tell JRun that the request is
for a servlet. You can run servlets out of any directory you like, as long
as it is in JRun's CLASSPATH. For example, I have several servlets that are
contained in JAR files scattered all over my server. I simply append the
path to the JARs to JRun's CLASSPATH and they can still be accessed by using
the "/servlet/myservlet" URL syntax. The "servlets" directory exists for
dynamic class loading and has no correlation to the "/servlet" part of the
URL other than servlets placed in the "servlets" directory are automatically
and dynamically loaded - they don't have to be put on the CLASSPATH.
One other thing to remember is that JRun has its own CLASSPATH that is
independent from your system classpath. It is set through their
administration tool, or by modifying the property file contained in the
JRun/jsm-default/properties/jsm.properties file.
- Kurt
_______________________________
Kurtis G. Williams
Internet Applications Development
Sterling Wentworth Corp.
[EMAIL PROTECTED]
phone: (801) 355-9777 x260
fax: (801) 355-9792
> -----Original Message-----
> From: Cedric Caillet [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, March 30, 1999 9:24 AM
> To: [EMAIL PROTECTED]
> Subject: How to invoke a servlet without modifying the path ?
>
> Hello all, I have several servlets but I don't want to put them in the
> servlet path of JRUN. I only want to run them by invoking them with a
> specified URL.
> ( /servlet/mypath1/[servletname] ).
>
> Any ideas...
> Thanks
> CEDRIC
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html