Revision: 1032
http://stripes.svn.sourceforge.net/stripes/?rev=1032&view=rev
Author: fdaoud
Date: 2009-01-21 14:48:28 +0000 (Wed, 21 Jan 2009)
Log Message:
-----------
Fix for STS-591
Modified Paths:
--------------
trunk/stripes/src/net/sourceforge/stripes/tag/layout/LayoutRenderTag.java
Modified:
trunk/stripes/src/net/sourceforge/stripes/tag/layout/LayoutRenderTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/layout/LayoutRenderTag.java
2009-01-09 19:45:06 UTC (rev 1031)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/layout/LayoutRenderTag.java
2009-01-21 14:48:28 UTC (rev 1032)
@@ -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