I don't know the specifics of your setup but mine looks like this:

     Apache+mod_jserv using JDK 1.2.2 on Linux
     a jar file named myservlets.jar in the directory /opt/apache/servlets
     a servlet in the jar file named com.sample.LoginServlet.class
     the servlet's alias is "login"
     the web server's name is "www.webserver.com"

1.   in the HTML, write:
          ACTION="http:/www.webserver.com/servlets/login"
2.   in the zone.properties file for the servlet's zone, write:
          servlet.login.code=com.sample.LoginServlet
3.   in the jserv.properties file, add the line:
          wrapper.classpath=/opt/apache/servlets/myservlets.jar
     right after the other "wrapper.classpath" entries.  This is the
CLASSPATH that the servlet engine actually uses.

Your setup may vary, but it shouldn't be too difficult to extrapolate from
here.





Punam Chordia <[EMAIL PROTECTED]> on 03/09/2000 06:37:52 PM

Please respond to "A mailing list for discussion about Sun Microsystem's
      Java              Servlet API Technology."
      <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:
Subject:  putting servlets in a jar




Hi friends,
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.

Thanks in advance,


Punam Chordia
ITL Infosys
Pune Infotech Park
91-02139-32800 Extn. 2025

___________________________________________________________________________
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

Reply via email to