Sorry for replying to myself, but there is of course a nicer way of getting 
the DefaultExtension...

ingo.



Index: TemplatePage.java
===================================================================
RCS file: 
/products/cvs/turbine/turbine/src/java/org/apache/turbine/modules/pages/TemplatePage.java,v
retrieving revision 1.6
diff -u -r1.6 TemplatePage.java
--- TemplatePage.java   2000/10/04 04:39:49     1.6
+++ TemplatePage.java   2001/02/07 14:31:17
@@ -137,6 +137,13 @@
          if (!data.hasScreen())
          {
              String template = data.getTemplateInfo().getScreenTemplate();
+
+            if ( template.indexOf(".") == -1 )
+            {
+                template = template + "." + 
TurbineTemplate.getDefaultExtension();
+                data.setScreenTemplate( template );
+            }
+
              // Get the layout template and the correct Screen.
              String layoutTemplate = 
TurbineTemplate.getLayoutTemplateName(template);
              data.getTemplateInfo().setLayoutTemplate(layoutTemplate);



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to