<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[hlxstc_xly的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/hlxstc_xly</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; hlxstc_xly]]></copyright><item><title><![CDATA[java.lang.ClassNotFoundException: javax.transaction.SystemException（hibernate5）]]></title><link>https://blog.youkuaiyun.com/hlxstc_xly/article/details/49979585</link><guid>https://blog.youkuaiyun.com/hlxstc_xly/article/details/49979585</guid><author>hlxstc_xly</author><pubDate>Sun, 22 Nov 2015 18:00:01 +0800</pubDate><description><![CDATA[在使用hibernate5的时候遇到Exception如下：
java.lang.ClassNotFoundException: javax.transaction.SystemException
已解决：
hibernate解压文件夹下面的osgi文件夹下面的geronimo-jta_1.1_spec-1.1.1.jar]]></description><category></category></item><item><title><![CDATA[Java Web利用POI导出Excel的示例（不在数据库取数据，Map类型的数据）]]></title><link>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41868553</link><guid>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41868553</guid><author>hlxstc_xly</author><pubDate>Thu, 11 Dec 2014 16:25:13 +0800</pubDate><description><![CDATA[前台的js代码如下： 



Javascript代码  



  
function exportExcel(){  
     location.href="excel/export";  
       
 }  
  



Controller层代码如下 


package com.terry.action;

/*** import be]]></description><category></category></item><item><title><![CDATA[Java Web利用POI导出Excel简单例子]]></title><link>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41868521</link><guid>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41868521</guid><author>hlxstc_xly</author><pubDate>Thu, 11 Dec 2014 16:23:31 +0800</pubDate><description><![CDATA[采用Spring mvc架构： 
Controller层代码如下 


Java代码  



@Controller  
public class StudentExportController{  
  
    @Autowired  
    private StudentExportService studentExportService;  
  
    ]]></description><category></category></item><item><title><![CDATA[collection,list,map 排序]]></title><link>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41864513</link><guid>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41864513</guid><author>hlxstc_xly</author><pubDate>Thu, 11 Dec 2014 11:42:47 +0800</pubDate><description><![CDATA[private void sortCollection(Collection> coll) {
		List> li = (List>)coll;
		
		Collections.sort(li,new Comparator>(){

			@Override
			public int compare(Map o1, Map o2) {
				return ((Float)o1.get("b]]></description><category></category></item><item><title><![CDATA[struts2标签，计算取小数点后两位]]></title><link>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41847543</link><guid>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41847543</guid><author>hlxstc_xly</author><pubDate>Wed, 10 Dec 2014 16:12:19 +0800</pubDate><description><![CDATA[问题：

算出来的结果是
15.384615384615385%

小数点后好多位，我只想保留小数点后两位该怎么做呢？
在jsp页面引入下面的语句


数据格式写成:




通用格式为]]></description><category></category></item><item><title><![CDATA[marquee的基本语法（滚动窗）]]></title><link>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41749733</link><guid>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41749733</guid><author>hlxstc_xly</author><pubDate>Fri, 05 Dec 2014 16:50:00 +0800</pubDate><description><![CDATA[marquee的基本语法： … ,与大多数HTML语法元素一样，它也是成双出现的，被修饰对象就放在起始符和终止符之间。而且它自己可以实现鼠标悬停的效果，下面解释一下各参数的含义：
align：是设定活动字幕的位置，除了居左、居中、居右三种位置外，又增加靠上（top）和靠下（bottom）两种位置。
Bgcolor：用于设定活动字幕的背景颜色，可以使用英文的单词也可以是十六进制数的。
Dire]]></description><category></category></item><item><title><![CDATA[easyUI的combobox动态加载数据]]></title><link>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41748729</link><guid>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41748729</guid><author>hlxstc_xly</author><pubDate>Fri, 05 Dec 2014 15:53:52 +0800</pubDate><description><![CDATA[$('#cc').combobox({   
    url:'combobox_data.json',   
    valueField:'id',   
    textField:'text'  
});


这个方法比用简单多了
例如：写法不一定对，请找官方资料copy]]></description><category></category></item><item><title><![CDATA[JQuery中$.ajax()方法参数详解]]></title><link>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41748607</link><guid>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41748607</guid><author>hlxstc_xly</author><pubDate>Fri, 05 Dec 2014 15:47:35 +0800</pubDate><description><![CDATA[JQuery中$.ajax()方法参数详解







url: 要求为String类型的参数，（默认为当前页地址）发送请求的地址。

type: 要求为String类型的参数，请求方式（post或get）默认为get。注意其他http请求方法，例如put和

      delete也可以使用，但仅部分浏览器支持。

timeout: 要求为Number类型的参数，]]></description><category></category></item><item><title><![CDATA[1.4版本的easyUI复杂表头处理]]></title><link>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41748313</link><guid>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41748313</guid><author>hlxstc_xly</author><pubDate>Fri, 05 Dec 2014 15:32:28 +0800</pubDate><description><![CDATA[先放效果图：











	.clear{clear:both;}
	.style1 {
		color: green;
		margin: 10;		
	}
	
	
	

  	



	
	
			所有工业公司	 
		    
				${factory.factoryName}
			
	
	
	
	
		

	
	开始日]]></description><category></category></item><item><title><![CDATA[easyUI的combobox的onChange事件]]></title><link>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41748031</link><guid>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41748031</guid><author>hlxstc_xly</author><pubDate>Fri, 05 Dec 2014 15:11:26 +0800</pubDate><description><![CDATA[必须以下列格式写，在是无法识别的
$(function() {
$('#state').combobox({
onChange:function(){

}
});
})]]></description><category></category></item><item><title><![CDATA[Oracle针对某列让特定信息排序[decode]]]></title><link>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41696071</link><guid>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41696071</guid><author>hlxstc_xly</author><pubDate>Wed, 03 Dec 2014 13:41:05 +0800</pubDate><description><![CDATA[在Oracle查询中，如果在没有排序，但又想让某列中特定值的信息排到前面的时候，使用oracle的decode(字段,'字段值',数字)

如 select name from user 查询出来的所有数据，如果想让 name='张三'  结果排到前面，则使用如下：

select name from user order by decode(name,'张三',0)

同理，如果想让]]></description><category></category></item><item><title><![CDATA[dataGrid的位置限定，使得自适应屏幕]]></title><link>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41695233</link><guid>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41695233</guid><author>hlxstc_xly</author><pubDate>Wed, 03 Dec 2014 12:34:07 +0800</pubDate><description><![CDATA[$(function(){	
		//初始化
		initGrid();	
		
		$(window).resize(function() {  
			resizeGrid();
		});  
		
		resizeGrid();
	});
		
	function resizeGrid(){
		var minHeight = 150;
		var minWidt]]></description><category></category></item><item><title><![CDATA[求两个Collection的交集]]></title><link>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41646605</link><guid>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41646605</guid><author>hlxstc_xly</author><pubDate>Mon, 01 Dec 2014 13:57:24 +0800</pubDate><description><![CDATA[自定义函数
public Collection intersection(Collection collection1, Collection collection2) {
	Collection collection = new ArrayList(); 
	for (String str : collection1) {
		if (collection2.contains(str)) {
]]></description><category></category></item><item><title><![CDATA[easy-UI的panel的refresh]]></title><link>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41625865</link><guid>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41625865</guid><author>hlxstc_xly</author><pubDate>Sun, 30 Nov 2014 20:03:27 +0800</pubDate><description><![CDATA[function searchByDate() {
$('#p').panel('refresh','searchByDate.action?date=' + date);
}]]></description><category></category></item><item><title><![CDATA[工作需要：Result 是自己定义的类，在DAO里面得到select结果集]]></title><link>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41625785</link><guid>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41625785</guid><author>hlxstc_xly</author><pubDate>Sun, 30 Nov 2014 20:00:10 +0800</pubDate><description><![CDATA[rs通过oneFieldValues的方法生成Collection结果集
public Collection findItems() throws SQLException{
String userName = Tools.toString(paramMap.get("userName"));

String sql = "select item_id from shzh.v_com_it]]></description><category></category></item><item><title><![CDATA[js日期格式化，easy-ui，datebox得到日期改变格式]]></title><link>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41625631</link><guid>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41625631</guid><author>hlxstc_xly</author><pubDate>Sun, 30 Nov 2014 19:59:10 +0800</pubDate><description><![CDATA[var today = formatDate(new Date(),'yyyy-MM-dd');
$(function() {
$('#date').datebox('setValue', today);
})

以上是给datebox赋值，格式为yyyy-MM-dd
$(function() {
$('#date').datebox('getValue');
})

以上在d]]></description><category></category></item><item><title><![CDATA[struts2 从一个action 跳转到另一个action的两种方法]]></title><link>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41625511</link><guid>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41625511</guid><author>hlxstc_xly</author><pubDate>Sun, 30 Nov 2014 19:41:35 +0800</pubDate><description><![CDATA[从action1直接跳转到action2,有两种方法： 

1. 需要保存前一个action的属性信息时使用，保存住action1的request对象: 
     action2 
2. 不保存前一个action的参数可以用这种方法: 
       action2]]></description><category></category></item><item><title><![CDATA[map遍历]]></title><link>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41551953</link><guid>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41551953</guid><author>hlxstc_xly</author><pubDate>Thu, 27 Nov 2014 19:56:48 +0800</pubDate><description><![CDATA[public static void main(String[] args) {


  Map map = new HashMap();
  map.put("1", "value1");
  map.put("2", "value2");
  map.put("3", "value3");
  
  //第一种：普遍使用，二次取值
  System.out.println("]]></description><category></category></item><item><title><![CDATA[Datagrd没有横向滚动条的原因]]></title><link>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41551823</link><guid>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41551823</guid><author>hlxstc_xly</author><pubDate>Thu, 27 Nov 2014 19:51:31 +0800</pubDate><description><![CDATA[Datagrid 的 fitColumns 属性：
默认为false；
设置为true后，
数据会填满横向屏幕，但是当行向数据太多时，会使得横向滚动条不出现，以至于无法拉动数据]]></description><category></category></item><item><title><![CDATA[easy-ui DateBox取值，取出的数值格式转换]]></title><link>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41551713</link><guid>https://blog.youkuaiyun.com/hlxstc_xly/article/details/41551713</guid><author>hlxstc_xly</author><pubDate>Thu, 27 Nov 2014 19:46:03 +0800</pubDate><description><![CDATA[var v1 = $('#beginTime1').datebox('getValue');
var v2 = $('#endTime1').datebox('getValue');


得到的数据格式，例如：2014-11-11
如果想得到20141111这种格式的话，可以：

function parseDate(dateStr){  
	var strArray = dateSt]]></description><category></category></item></channel></rss>