Commits

rebelutionary  committed e511779

It would be nice if Velocity didn't die hard whenever there's an OGNL exception :)

(after chatting to Pat) How about let's just return false from the directive (nothing will print) and log a big nasty warning for the developer to find?

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@330573baa09-0c28-0410-bef9-dab3c582ae83

  • Participants
  • Parent commits 0c78cf8

Comments (0)

Files changed (1)

File src/java/com/opensymphony/webwork/views/velocity/AbstractTagDirective.java

                     ((Tag) object).setParent((Tag) currentTag);
                 }
 
-                return this.processTag(pageContext, (Tag) object, subContextAdapter, writer, node, bodyNode);
+                try
+                {
+                    return this.processTag(pageContext, (Tag) object, subContextAdapter, writer, node, bodyNode);
+                }
+                catch (Exception e)
+                {
+                    log.error("Error processing tag: " + e, e);
+                    return false;
+                }
             } else {
                 return true;
             }