From: Jon M. <jo...@te...> - 2006-03-23 14:58:06
|
Alistair Young wrote: >> You won't be going near Facility. > > I know Jon but I'll be going somewhere I don't want to go - half > hidden servlets - that's not what servlets are designed for. It is one of the things that servlets were designed for see the method; ServletContext.getNamedDispatcher(String name) (http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContext.html) > >> I think it can be done without adding any new tag types to the >> template DTD > > and I think it can ... just different ways of looking at the problem. > My view is influenced by JSPs/taglibs,your's by bod internals. No, I'm not thinking of Bod at all - 'including' is a standard thing that servlets do. > >> out.print( "<P>here's another 400 paragraphs of HTML</P>" ); > > that's how bod works though! It's not how bod templates work. > I don't think I'm getting anywhere now although it's been an > interesting ride getting there. Just trying to help! I'm not going to say go ahead with your plugin tag (which I don't personally object to) because I'm not going to be affected by the consequences - that's down to the other developers to comment. I'm just suggesting a method they can't easily object to because it doesn't involve more that a line or two of changes to the Bodington source code - to make the ServletContext available to the template so you can call getNamedDispatcher( "myModules" ).include( request, response ). I don't think that's a bodge or a workaround - it's basically the same as what you're proposing but compliant with the servlet spec - i.e. you could use it perfectly well outside of Bodington. Jon |