1 16 package org.apache.taglibs.string; 17 18 import javax.servlet.jsp.JspException ; 19 import org.apache.commons.lang.CharSetUtils; 20 21 35 public class DeleteTag extends StringTagSupport { 36 37 private String set; 38 39 public DeleteTag() { 40 super(); 41 } 42 43 48 public String getSet() { 49 return this.set; 50 } 51 52 57 public void setSet(String set) { 58 this.set = set; 59 } 60 61 62 63 public String changeString(String text) throws JspException { 64 return CharSetUtils.delete(text, set); 65 } 66 67 public void initAttributes() { 68 69 this.set = null; 70 71 } 72 73 } 74 | Popular Tags |