W3C home > Mailing lists > Public > www-jigsaw@w3.org > March to April 1998

Re: Servlet Problems!

From: Wolfgang Platzer <wplatzer@iaik.tu-graz.ac.at>
Date: Wed, 15 Apr 1998 15:12:57 +0200
Message-ID: <012501bd6870$3596c0e0$1cea1b81@kopernikus.iaik.tu-graz.ac.at>
To: "Benoit Mahe" <Benoit.Mahe@sophia.inria.fr>
Cc: "Jigsaw Mailinglist" <www-jigsaw@w3.org>
Yes, please can you mail it to me!

Maybe an archive parameter in class ServletWrapper could be very useful for
distributing the servlet. For example if  I write a servlet which consists
of more classes I can put them into a jar file e.g. servlet.jar.

In ServletWrapper I set

archive: servlet.jar
servlet-class: ServletMain

Now the ClassLoader can take the classes out of servlet.jar and starts
ServletMain.

Wolfgang


>-----Ursprüngliche Nachricht-----
>Von: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
>An: Wolfgang Platzer <wplatzer@iaik.tu-graz.ac.at>
>Cc: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>; Jigsaw Mailinglist
<www-jigsaw@w3.org>
>Datum: Mittwoch, 15. April 1998 14:55
>Betreff: Re: Servlet Problems!
>

>wplatzer@iaik.tu-graz.ac.at writes:
>
>> In my servlet now I use a workaround:
>>
>> String tcs = (String)req.getAttribute("test.test_class");
>> TestClass tc = new TestClass(tcs);
>>
>>
>> The reloading of a changed servlet works great!!!
>>
>> I suggest only to reload the classes in the servlets directory and NOT to
>> reload classes which are defined in Jigsaw's classpath.
>>
>> Wolfgang
>>
>
>Yes, but the servlet class could be in the CLASSPATH, and this seems to be
>something useful for some people. For the moment I have added a boolean
flag
>to disable auto-reload (in Jigsaw2.0 only), do you want the new
>ServletWrapper.java file?
>
>Benoit.
>
>- Benoît Mahé -------------------------------------------------------
>                      World Wide Web Consortium (W3C)
>                    Architecture domain - Jigsaw Team
>
>  http://www.w3.org/People/Mahe - bmahe@w3.org - +33.4.92.38.79.89
>---------------------------------------------------------------------
Received on Wednesday, 15 April 1998 09:14:57 GMT

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