1 16 17 package org.apache.taglibs.standard.tag.rt.fmt; 18 19 import java.util.Locale ; 20 21 import javax.servlet.jsp.JspTagException ; 22 23 import org.apache.taglibs.standard.tag.common.fmt.ParseDateSupport; 24 import org.apache.taglibs.standard.tag.common.fmt.SetLocaleSupport; 25 26 32 33 public class ParseDateTag extends ParseDateSupport { 34 35 38 public void setValue(String value) throws JspTagException { 40 this.value = value; 41 this.valueSpecified = true; 42 } 43 44 public void setType(String type) throws JspTagException { 46 this.type = type; 47 } 48 49 public void setDateStyle(String dateStyle) throws JspTagException { 51 this.dateStyle = dateStyle; 52 } 53 54 public void setTimeStyle(String timeStyle) throws JspTagException { 56 this.timeStyle = timeStyle; 57 } 58 59 public void setPattern(String pattern) throws JspTagException { 61 this.pattern = pattern; 62 } 63 64 public void setTimeZone(Object timeZone) throws JspTagException { 66 this.timeZone = timeZone; 67 } 68 69 public void setParseLocale(Object loc) throws JspTagException { 71 if (loc != null) { 72 if (loc instanceof Locale ) { 73 this.parseLocale = (Locale ) loc; 74 } else { 75 if (!"".equals((String ) loc)) { 76 this.parseLocale = SetLocaleSupport.parseLocale((String ) 77 loc); 78 } 79 } 80 } 81 } 82 } 83 | Popular Tags |