1 34 35 36 package com.micronova.jsp.tag; 37 38 import javax.servlet.*; 39 import com.micronova.util.codec.CodecJSP; 40 41 public class LogTag extends YuzuTag 42 { 43 protected String _destination; 44 protected String _category; 45 46 protected void init() 47 { 48 super.init(); 49 50 _destination = "log"; 51 _category = ""; 52 } 53 54 protected void exportValue(Object tagValue) throws Exception 55 { 56 if (tagValue != null) 57 { 58 CodecJSP._log(pageContext, tagValue, _destination, _category); 59 } 60 } 61 62 public void setDestination(Object expression) throws Exception 63 { 64 _destination = (String )evaluateAttribute("destination", expression, String .class); 65 } 66 67 public void setCategory(Object expression) throws Exception 68 { 69 _category = (String )evaluateAttribute("category", expression, String .class); 70 } 71 } 72 | Popular Tags |