Hi,

I want to call a servlet as
http://127.0.0.1:8000/servlet/Version800/Servlet1. Is this possible
under JRun Engine? If so, how? What configuration do I need to do
under JRun Administrator?

Thanks

===
Joao Carlos Costa

Hi Joao,

Yes this is possible, you need to set up a mapping using the JRun
administration (jse, service setting, mappings) that tells JRun that it
should
expect servlet classes to be called from there. The servlet can be of any
package
(I strongly recommend that you use properly defined package names, it
helps).

Under jse->service settings->general you then tell JRun where servlets
physically are
to be found.

The relationship is....

JRun needs to know where to physically load servlets from.
The default settings under general are : servlets, ../../../servlets. These
are physical
directories that are relative to <jrunroot>/jsm-default.

The mappping tells JRun that any request for a servlet (in this case
/servlet/Version800/Servlet1)
should cause it to look for classes loaded from those physical directories.

So all you need to do is set up a mapping /servlet/Version800/ and it will
JRun will look for
Servlet1 under servlets and ../../../servlets.

If you use packages then you can also alias the name of the servlet to the
actual fully qualified
name of the class, ie Servlet1 is the alias that represents
Version800.Servlet1 if you
have Servlet1 packaged like that.

Hope that helps

Andy

___________________________________________________________________________
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

Reply via email to