1 34 35 36 package com.micronova.jsp.tag; 37 38 import java.util.*; 39 import com.micronova.util.*; 40 41 42 43 public class FilterTag extends YuzuTag 44 { 45 protected String _include; 46 protected String _apply; 47 protected String _break; 48 protected String _applyCodec; 49 50 public void init() 51 { 52 super.init(); 53 54 _include = "true"; 55 _apply = null; 56 _break = null; 57 _applyCodec = null; 58 } 59 60 public void setInclude(Object expression) throws Exception 61 { 62 _include = (String )evaluateAttribute("include", expression, EL.class); 63 } 64 65 public void setApply(Object expression) throws Exception 66 { 67 _apply = (String )evaluateAttribute("apply", expression, EL.class); 68 } 69 70 public void setBreak(Object expression) throws Exception 71 { 72 _break = (String )evaluateAttribute("break", expression, EL.class); 73 } 74 75 public void setApplyCodec(Object expression) throws Exception 76 { 77 _applyCodec = (String )evaluateAttribute("applyCodec", expression, EL.class); 78 } 79 80 public Object processValue(Object tagValue) throws Exception 81 { 82 return EL.applyFilter(pageContext, tagValue, _include, _break, _apply, _applyCodec); 83 } 84 } 85 | Popular Tags |