博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年7月24日

摘要: Activity类 private ImageView imageView=null; private Button button=null; private TextView textView=null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); textView=(TextVi... 阅读全文

posted @ 2013-07-24 23:27 TimeFight 阅读(924) 评论(0) 推荐(0)

2013年6月25日

摘要: Java代码importjava.awt.Font;importjava.io.IOException;importjavax.servlet.ServletException;importjavax.servlet.http.HttpServlet;importjavax.servlet.http.HttpServletRequest;importjavax.servlet.http.HttpServletResponse;importorg.jfree.chart.ChartFactory;importorg.jfree.chart.ChartUtilities;importorg.jfr 阅读全文

posted @ 2013-06-25 17:29 TimeFight 阅读(746) 评论(0) 推荐(0)

摘要: 转至http://wangyu.iteye.com/blog/211266下面以边帖图片和代码的方式来讲解Struts2与JFreeChart的整合。 搭建环境:首先帖一张工程的目录结构以及所需的jar包。注意:如果你不打算自己写ChartResult的话只需要引入struts2-jfreechart-plugin-2.0.6.jar(这个在struts-2.0.6-all.zip可以找到了): 1.依次帖web.xml、struts.xml、struts.properties和struts-jfreechart.xml几个配置文件的代码: web.xml struts2 org.apac.. 阅读全文

posted @ 2013-06-25 13:12 TimeFight 阅读(293) 评论(0) 推荐(0)

2013年6月18日

摘要: 保证strust.xml配置不出现问题 在启动项目的时候 按服务器按钮启动服务器 这时项目并没有部署到 解决方案 在project 》右击》 run as my esclipse Server 》tomcat 阅读全文

posted @ 2013-06-18 10:29 TimeFight 阅读(131) 评论(0) 推荐(0)

2013年6月16日

摘要: public BaseDaoImp() {ParameterizedType type= (ParameterizedType) this.getClass().getGenericSuperclass();this.class1=(Class<T>) type.getActualTypeArguments()[0];System.out.println(class1);}原因是 beans.xml中的事务配置<!-- 配置事务 --> <!-- enable the configuration of transactional behavior based on 阅读全文

posted @ 2013-06-16 19:40 TimeFight 阅读(391) 评论(0) 推荐(0)

摘要: 父窗口js代码function openSelectReceiverUI(){myShowModalDialog("URL地址", 500, 500);}表单<s:hidden name="UserID" /> <s:textfield name="receiverName" cssClass=" required InputStyle" cssStyle="width:250px; float:left;" cssClass="required "/> 阅读全文

posted @ 2013-06-16 15:25 TimeFight 阅读(198) 评论(0) 推荐(0)

2013年6月2日

摘要: Struts Problem ReportStruts has detected an unhandled exception:Messages:FreeMarker template error!Method public java.lang.String org.hibernate.exception.NestableRuntimeException.getMessage(int) threw an exception when invoked on org.hibernate.HibernateException: instance not of expected entity type 阅读全文

posted @ 2013-06-02 10:03 TimeFight 阅读(219) 评论(0) 推荐(0)

2013年5月31日

摘要: 一、对传递过来的参数进行编码转换key=new String(key.getBytes("ISO-8859-1"),"UTF-8");其中ISO-8859-1是tomcat默认的编码类型缺点:当服务器的编码改成GBK 该方法就会失去作用 当然改成key=new String(key.getBytes("GBK"),"UTF-8");二、修改服务器(tomcat的编码)server.xml<Connector port="8080" protocol="HTTP/1.1" 阅读全文

posted @ 2013-05-31 14:59 TimeFight 阅读(735) 评论(0) 推荐(0)

2013年5月30日

摘要: 找到my.in[client]port=3306default-character-set=utf8 [mysql]# SERVER SECTION# ----------------------------------------------------------------------# # The following options will be read by the MySQL Server. Make sure that# you have installed the server correctly (see above) so it reads this # file.# 阅读全文

posted @ 2013-05-30 19:13 TimeFight 阅读(119) 评论(0) 推荐(0)

摘要: 1、首先将jbpm.hibernate.cfg.xml 和jbpm.cfg.xml复制到src目录下jbpm.hibernate.cfg.xml<?xml version="1.0" encoding="utf-8"?><!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configurat 阅读全文

posted @ 2013-05-30 19:06 TimeFight 阅读(260) 评论(0) 推荐(0)