On Monday 26 November 2001 17:02, Geoffrey Talvola wrote: > On Sunday November 25, 2001 03:24 pm, Tavis Rudd wrote: > > That's true, but the developer doesn't neccessarily have direct > > access to those servlets ... unless they make a custom servlet > > factory for unknown file types. And if you're fiddling with > > servlet factories, you're fiddling with the Application. > > It doesn't have to be that way. We could have a way to add new > servlet factories and associate them with extensions without having > to mess with Application at all. It would just be some settings in > the Application.config that mapped extensions to servlet factory > classes. Actually, now that I think about it, I'm surprised it > doesn't already work this way :-) It wouldn't be hard to add in > the config variables.
That would definitely be worthwhile. If the extension-to-factory mapping is stored as a dictionary internally you could add a setting that accepts another dictionary with new mappings and then just do originalMappings.update(newMappings). How many people have actually written custom servlet factories? _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss