One potential problem with that approach is that you can't benefit from servlet
reloading: if you need it the jar file should be included in the repositories
line for the zone, rather than the wrapper.classpath line in jserv.properties.

- simon

Noel E Lecaros wrote:

> 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,

___________________________________________________________________________
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