Update of /var/cvs/applications/taglib/src/org/mmbase/bridge/jsp/taglib/security
In directory james.mmbase.org:/tmp/cvs-serv13465/security

Modified Files:
        MayWriteTag.java 
Log Message:
spacin and other details


See also: 
http://cvs.mmbase.org/viewcvs/applications/taglib/src/org/mmbase/bridge/jsp/taglib/security


Index: MayWriteTag.java
===================================================================
RCS file: 
/var/cvs/applications/taglib/src/org/mmbase/bridge/jsp/taglib/security/MayWriteTag.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- MayWriteTag.java    11 Apr 2006 22:55:09 -0000      1.10
+++ MayWriteTag.java    23 Feb 2008 16:00:44 -0000      1.11
@@ -15,17 +15,19 @@
 import org.mmbase.bridge.jsp.taglib.NodeReferrerTag;
 
 import javax.servlet.jsp.JspTagException;
-
+import org.mmbase.util.logging.*;
 
 /**
  * A very simple tag to check if node may be changed.
  *
  * @author Michiel Meeuwissen
- * @version $Id: MayWriteTag.java,v 1.10 2006/04/11 22:55:09 michiel Exp $
+ * @version $Id: MayWriteTag.java,v 1.11 2008/02/23 16:00:44 michiel Exp $
  */
 
 public class MayWriteTag extends NodeReferrerTag implements Condition {
 
+    private static final Logger log = 
Logging.getLoggerInstance(MayWriteTag.class);
+
     protected Attribute inverse = Attribute.NULL;
     protected Attribute number = Attribute.NULL;
 
@@ -51,11 +53,16 @@
     }
 
     public int doStartTag() throws JspTagException {
+        try {
         if ((getNodeToCheck().mayWrite()) != getInverse()) {
             return EVAL_BODY;
         } else {
             return SKIP_BODY;
         }
+        } catch (Exception e) {
+            log.error(e.getMessage(), e);
+            return SKIP_BODY;
+        }
     }
     public int doAfterBody() throws JspTagException {
         if (EVAL_BODY == EVAL_BODY_BUFFERED) { // not needed if 
EVAL_BODY_INCLUDE
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to