ITeye博客

2011 年文章归档

共 4 篇文章

struts2的时间控件

struts2时间控件 jsp页面 写道 <head> <sx:head theme="ajax" /> 引用这个是必不可少的,不然会报错 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <title></title> <link rel="stylesheet" type="text/css" href="/css/main.css" /> <script language="Ja…

2011-04-26 17:52 · Struts2 · CSS · Ajax · JSP · JavaScript · IE

jFreeChart 三种图片的显示

创建三种图片的工厂类 import java.awt.Color; import java.awt.Font; import java.awt.Rectangle; import java.awt.Shape; import java.io.IOException; import java.io.PrintWriter; import java.text.DecimalFormat; import java.text.NumberFormat; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.Ht…

2011-04-26 17:38 · jFreeChart · jfreechart · Servlet

junit4 单元测试service(Spring)方法

import static org.junit.Assert.assertEquals; import org.junit.Before; import org.junit.Test; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import com.job36.admanage.service.AdAdTypeService; import com.job36.admanage…

2011-03-30 17:21 · junit · junit · DAO · Spring · XML · 单元测试

中英文技术长度

public static void main(String[] args) { String aString = "你好abc"; String anotherString = null; try { anotherString = new String(aString.getBytes("GBK"), "ISO8859_1"); } catch (UnsupportedEncodingException ex) { } System.out.println(aString.length() + "," + anotherString.length()); }

2011-03-02 18:00