Punam,
First put the full path and filename of the jar file in the webserver's
classpath.  Servlets by default are accessible with the syntax
http://servername/servlet/package.classname.  More often, an instance of a
servlet class is configured with the web server (or servlet runner), giving
the servlet instance a name and/or an file alias.  The url to access this
instance would be http://servername/servlet/name or http://servername/alias.


Hope this helps,
George


> ----------
> From:         Punam Chordia[SMTP:[EMAIL PROTECTED]]
> Reply To:     A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology.
> Sent:         Thursday, March 09, 2000 5:37 AM
> To:   [EMAIL PROTECTED]
> 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