struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gred...@apache.org
Subject svn commit: r384883 - /struts/sandbox/trunk/tiles/src/java/org/apache/tiles/taglib/PutTag.java
Date Fri, 10 Mar 2006 18:23:26 GMT
Author: greddin
Date: Fri Mar 10 10:23:24 2006
New Revision: 384883

URL: http://svn.apache.org/viewcvs?rev=384883&view=rev
Log:
Ticket #38252.  Refactoring taglib.  This code is no longer needed because it is handled by
the InsertTag.

Modified:
    struts/sandbox/trunk/tiles/src/java/org/apache/tiles/taglib/PutTag.java

Modified: struts/sandbox/trunk/tiles/src/java/org/apache/tiles/taglib/PutTag.java
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/tiles/src/java/org/apache/tiles/taglib/PutTag.java?rev=384883&r1=384882&r2=384883&view=diff
==============================================================================
--- struts/sandbox/trunk/tiles/src/java/org/apache/tiles/taglib/PutTag.java (original)
+++ struts/sandbox/trunk/tiles/src/java/org/apache/tiles/taglib/PutTag.java Fri Mar 10 10:23:24
2006
@@ -342,32 +342,6 @@
             }
         }
 
-        // FIXME - How to handle this now?
-        if (realValue != null
-            && valueType != null) {
-
-            String strValue = realValue.toString();
-            if (valueType.equalsIgnoreCase("string")) {
-//                realValue = new DirectStringAttribute(strValue);
-
-            } else if (valueType.equalsIgnoreCase("page")) {
-//                realValue = new PathAttribute(strValue);
-
-            } else if (valueType.equalsIgnoreCase("template")) {
-//                realValue = new PathAttribute(strValue);
-
-            } else if (valueType.equalsIgnoreCase("instance")) {
-//                realValue = new DefinitionNameAttribute(strValue);
-
-            } else if (valueType.equalsIgnoreCase("definition")) {
-//                realValue = new DefinitionNameAttribute(strValue);
-
-            } else { // bad type
-                throw new JspException(
-                    "Warning - Tag put : Bad type '" + valueType + "'.");
-            }
-        }
-
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message