Revision: 1033
          http://stripes.svn.sourceforge.net/stripes/?rev=1033&view=rev
Author:   fdaoud
Date:     2009-01-21 14:50:25 +0000 (Wed, 21 Jan 2009)

Log Message:
-----------
Fix for STS-591

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
  2009-01-21 14:48:28 UTC (rev 1032)
+++ 
branches/1.5.x/stripes/src/net/sourceforge/stripes/tag/layout/LayoutRenderTag.java
  2009-01-21 14:50:25 UTC (rev 1033)
@@ -94,6 +94,12 @@
     @SuppressWarnings("unchecked")
        public int doEndTag() throws JspException {
         try {
+            if (!name.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 '" + name + "' 
accordingly.");
+            }
+
             HttpServletRequest request = (HttpServletRequest) 
getPageContext().getRequest();
 
             // Put the components into the request, for the definition tag to 
use.. using a stack


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

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to