W3C home > Mailing lists > Public > www-jigsaw@w3.org > January to February 1999

Re: servlets in package

From: S.Ramaswamy <srswamy@giasdl01.vsnl.net.in>
Date: Wed, 6 Jan 1999 23:48:12 -0500 (EST)
Message-ID: <36943A05.8051D848@del1.vsnl.net.in>
To: Kit McCormick <ktm@gims.net>
CC: www-jigsaw@w3.org, jeffrey@mindspring.com


Kit McCormick wrote:

> i have a servlet-based application and i am test-driving jigsaw.
> my servlets are organized into packages
> (eg: com.gims.webmart.front.VendorCatalog)
>
> In order to load these classes, I had to change a bit of code in
> ServletIndexer.java (jigsaw v2.0.0, btw).
>
> starting at line 147 (in createVirtualResource(...)):
>
> char fileSeparatorChar = File.separatorChar;
> String sname = name.replace('.', fileSeparatorChar)+".class";
>
> Now all is well, and I really love this server.
>
> Thanks.
> Kit McCormick

Why don'tyou jar the classes into a JAR file.

--
___________________________________________________________________________

S.Ramaswamy
Matrix Infotech Syndicate
D-7, Poorti, Vikaspuri, New Delhi, 110018, India
PHONE: +91-11-5610050,   FAX: +91-11-5535103
WEB  :   http://MatrixInfotech.HyperMart.Net
Received on Thursday, 7 January 1999 04:04:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:28 GMT