Hi there,
Forget the client side... a jar file is just like a directory as far as your servlet
engine is concerned. You need to tell the servlet engine where your .jar file is... in
just the same way as you need to tell your servlet engine where a directory containing
your servlet .class files is.
For for JServ...
In the jserv.properties file add a line similar to this if you want the servlets to be
statically loaded
wrapper.classpath=D:\server_software\local_dev\myJar.jar
or if you want the servlets to use the dynamic class loader then you need something
like this
repositories=D:\server_software\local_dev\myJar.jar
in your zone.properties file for the servlet zone that the servlets are to operate in.
Either way you can now call these servlets in precisely the same way as when they were
just in the JServ servlets directory.
These are examples from Win NT.
kev
-----Original Message-----
From: Punam Chordia [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 9 March 2000 21:38
To: [EMAIL PROTECTED]
Subject: putting servlets in a jar
On out client's webserver(apache+JServ1.0) there are many web applications
running.
We have around 10-15 servlets which we require to put in a jar file.
Our frontend is HTML/Javascript.
How to call a servlet in a jar from the html page?
I tried
action = "<jar name>.<servlet name>"
and also put the servlet in class path, but it didnt work.
Some one who has done it, could u please give me the detailed information.
EOM
NOTICE - This message contains information intended only for the use of the addressee
named above. It may also be confidential and/or privileged. If you are not the
intended recipient of this message you are hereby notified that you must not
disseminate, copy or take any action in reliance on it. If you have received this
message in error please notify [EMAIL PROTECTED]
___________________________________________________________________________
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