On Mon, Sep 09, 2002 at 01:05:20AM +0200, Oskar Sandberg wrote: > > Well, is it possible to get to it via a static variable or method > > somewhere? > > No, I have tried desperately to avoid static hacks to solve such things. > I was trying to solve the problem before, when I wanted to make an index > servlet, but I wasn't able to come up with a solution I was happy with. > It is partially the servlet interfaces fault, and partially the fault of > Tavin's system for configuring the services and servlets (it is nice that > is flexible, but I am not sure I agree that it is something that should > be in the normal configuration file as it defines the structure of the > program.)
I do agree that there are things in the config file which probably shouldn't be there - giving the names of classes in that file, for example, to be loaded dynamically, is probably something to be avoided. Note that Infolets are not specified in the config file, but are "hardwired" into NodeInfoServlet. Perhaps the whole problem is that the servlet mechanism is simply overengineered, and overengineered in a way that isn't appropriate to how servlets are used in-practice. Ian. -- Ian Clarke ian at freenetproject.org Founder & Coordinator, The Freenet Project http://freenetproject.org/ Chief Technology Officer, Uprizer Inc. http://www.uprizer.com/ Personal Homepage http://locut.us/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 232 bytes Desc: not available URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20020908/abd1179e/attachment.pgp>
