1 19 20 package com.sslexplorer.networkplaces.tags; 21 22 import javax.servlet.jsp.tagext.TagSupport ; 23 24 import org.apache.commons.logging.Log; 25 import org.apache.commons.logging.LogFactory; 26 27 import com.sslexplorer.networkplaces.forms.FileSystemForm; 28 29 34 public class ReadOnlyTag extends TagSupport { 35 final static Log log = LogFactory.getLog(ReadOnlyTag.class); 36 37 40 public int doStartTag() { 41 FileSystemForm fsf = (FileSystemForm) pageContext.getRequest().getAttribute("fileSystemForm"); 42 if (fsf.isViewOnly() || fsf.getVFSResource().getMount().isReadOnly() || fsf.getNetworkPlace().isNoDelete()) { 43 return SKIP_BODY; 44 } else { 45 return EVAL_BODY_INCLUDE; 46 } 47 } 48 } | Popular Tags |