1 2 17 18 package org.apache.taglibs.dbtags.resultset; 19 20 import java.io.IOException ; 21 import java.sql.Types ; 22 23 import javax.servlet.jsp.JspTagException ; 24 25 87 public class GetTimeTag extends BaseDateTimeGetterTag { 88 89 public int doStartTag() throws JspTagException { 90 91 try { 92 int position = getPosition(); 93 94 String time = getDateAsString(position,Types.TIME); 95 96 if (time == null) { 98 return EVAL_BODY_INCLUDE; 99 } 100 101 if (_attributeName != null) { 102 setAttribute(_attributeName, time, _scope); 103 } else { 104 pageContext.getOut().write(time); 105 } 106 } catch (IOException e) { 107 throw new JspTagException (e.toString()); 108 } 109 110 return EVAL_BODY_INCLUDE; 111 112 } 113 114 } 115 | Popular Tags |