Oliver Bock wrote: > To provide more concise URLs to users, I use a servlet called index.py > to forward requests. I'm sure I didn't think this up myself, but I > cannot find it in the current docs.
You can also use Main.py, and you can configure it in Application.config, setting "DirectoryFile": http://www.webwareforpython.org/WebKit/Docs/Configuration.html#general-settings > from WebKit.HTTPServlet import HTTPServlet > class index(HTTPServlet): > def respond(self, trans): > trans.application().forward(trans, '/RealServlet' + > trans.request().extraURLPath() ) > > This has been working well for me except when I override > writeExceptionReport(), HTTPServlet does not support this. You should use HTTPContent or Page. See the class hierarchy here: http://www.webwareforpython.org/WebKit/Docs/Source/ClassHierarchy.html Page is usually the best choice as base class for your web pages or for your own master class. -- Chris Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss