1 16 17 package org.apache.taglibs.i18n; 18 19 import java.text.DateFormat ; 20 import java.text.Format ; 21 22 28 public class FormatTimeTag extends FormatDateTagSupport { 29 30 protected static final String _tagname = "i18n:formatTime"; 31 32 private int style = DateFormat.SHORT; 33 34 public void setStyle( String style ) { 37 this.style = getStyleCode( style ); 38 } 39 40 protected Format getFormat() { 43 return DateFormat.getTimeInstance( style, getLocale() ); 44 } 45 } 46 47 | Popular Tags |