1 34 35 36 package com.micronova.jsp.tag; 37 38 import java.util.*; 39 import java.util.regex.*; 40 import java.io.*; 41 import javax.servlet.*; 42 import javax.servlet.http.*; 43 import javax.servlet.jsp.*; 44 import com.micronova.util.*; 45 import com.micronova.util.servlet.*; 46 47 52 53 public class ValueTag extends YuzuTag 54 { 55 protected void init() 56 { 57 super.init(); 58 59 _attribute="value"; 60 } 61 62 63 64 protected void doPrepare() throws Exception 65 { 66 super.doPrepare(); 67 68 Object ancestorValue = ((YuzuTag)getAncestorTag(YuzuTag.CLASSNAME))._value; 69 70 if (_defaultValue == null) 71 { 72 _defaultValue = ancestorValue; 73 } 74 75 if ("*".equals(_value)) 76 { 77 _value = ancestorValue; 78 } 79 } 80 } 81 | Popular Tags |