1 22 23 package org.meshcms.taglib; 24 25 import java.io.*; 26 27 31 public class IfModule extends AbstractTag { 32 private String location = ""; 33 34 public void setLocation(String location) { 35 this.location = location; 36 } 37 38 public String getLocation() { 39 return location; 40 } 41 42 public void writeTag() throws IOException { 43 } 45 46 public int getStartTagReturnValue() { 47 return (isEdit || getModuleDescriptor(location, null) != null) ? 48 EVAL_BODY_INCLUDE : SKIP_BODY; 49 } 50 } 51 | Popular Tags |