Revision: 1242
          http://stripes.svn.sourceforge.net/stripes/?rev=1242&view=rev
Author:   bengunter
Date:     2010-05-21 19:52:58 +0000 (Fri, 21 May 2010)

Log Message:
-----------
STS-391: Removed the restriction that a layout name must be an absolute path. 
PageContext.include(..) does not require absolute paths, and everything works 
just fine with relative paths.

Modified Paths:
--------------
    
branches/1.5.x/stripes/src/net/sourceforge/stripes/tag/layout/LayoutRenderTag.java

Modified: 
branches/1.5.x/stripes/src/net/sourceforge/stripes/tag/layout/LayoutRenderTag.java
===================================================================
--- 
branches/1.5.x/stripes/src/net/sourceforge/stripes/tag/layout/LayoutRenderTag.java
  2010-05-21 18:26:06 UTC (rev 1241)
+++ 
branches/1.5.x/stripes/src/net/sourceforge/stripes/tag/layout/LayoutRenderTag.java
  2010-05-21 19:52:58 UTC (rev 1242)
@@ -104,14 +104,6 @@
 
         if (isNewContext()) {
             log.debug("Start layout init in ", context.getRenderPage());
-
-            // Ensure absolute path for layout name
-            if (!getName().startsWith("/")) {
-                throw new StripesJspException("The name= attribute of the 
layout-render tag must be " +
-                    "an absolute path, starting with a forward slash (/). 
Please modify the " +
-                    "layout-render tag with the name '" + getName() + "' 
accordingly.");
-            }
-
             pushPageContextAttributes(context.getParameters());
         }
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------

_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to