Commits

Anonymous committed e414b23

WW-1455
- Use logger to print exception stack trace in UIBean class

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

  • Participants
  • Parent commits be1b52e

Comments (0)

Files changed (1)

src/java/com/opensymphony/webwork/components/UIBean.java

 
     public boolean end(Writer writer, String body) {
         evaluateParams();
+        Template _template = null;
         try {
+            _template = buildTemplateName(template, getDefaultTemplate());
             super.end(writer, body, false);
-            mergeTemplate(writer, buildTemplateName(template, getDefaultTemplate()));
+            mergeTemplate(writer, _template);
         } catch (Exception e) {
-            e.printStackTrace();
+            LOG.error("an exception occurred while merging themplate ["+_template+"]", e);
         }
         finally {
         	popComponentStack();