The .tml file is a good place to put variables and small procedures that are commonly used in your [TclHttpd] application (note that you don't want to put a lot of procedures here, they're probably best put in custom libraries). For those of you who have worked with ColdFusion, the .tml file is similar to the application.cfm (the .tml is more powerful though, since it's a Tcl script). For example: * The email of the webmaster (using Doc_Webmaster) * URLs of the client/server error pages (using Doc_NotFoundPage and Doc_ErrorPage) * Cookie and session handling * I also typically create a variable called '''errors_to_browser''' which, when set to 1, shows the error output on the template defined in Doc_ErrorPage. The Doc_ErrorPage template contains a simple conditional that checks the value of errors_to_browser and acts accordingly. '''See also:''' * [TclHttpd Templates] ---- [LV] Has anyone played with invoking Java objects from a .tml file? Someone stopped by this morning talking to me about ColdFusion vs Java servlets vs Tcl on the desktop, and they indicated that they were not considering Tcl on the back-end. They need to be able to interact with their business login which is in [EJB] beans. I won't be able to convince them otherwise, but I just thought I would check to see what people had tried along these lines. ---- [Category TclHttpd]