webwork/src/main/webwork/util/editor TimestampEditor.java,NONE,1.1

[email protected] Wed, 12 Nov 2003 18:04:19 -0800
Newsgroups gmane.comp.java.open-symphony.cvs
Message-ID <[email protected]>
Update of /cvsroot/opensymphony/webwork/src/main/webwork/util/editor
In directory sc8-pr-cvs1:/tmp/cvs-serv30866/src/main/webwork/util/editor

Added Files:
	TimestampEditor.java 
Log Message:
Add support for Timestamp editor, along with a testcase for it. Fix WW-92


--- NEW FILE: TimestampEditor.java ---
package webwork.util.editor;

import java.util.Date;
import java.sql.Timestamp;

/**
 * @author Hani Suleiman ([email protected])
 *         Date: Nov 12
 * @author 2003
 *         Time: 8:58:55 PM
 */
public class TimestampEditor extends DateEditor
{
  public Object getAsValue(String txt)
  {
    Date d = (Date)super.getAsValue(txt);
    return new Timestamp(d.getTime());
  }
}




-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/