摘要: 首先,需要在web.xml中添加一个spring的监听 org.springframework.web.context.request.RequestContextListener 然后 这样就可以获得ServletRequestAttributes request =(ServletRequestAttributes) RequestContextHolder.getRequestAttributes(); HttpSession session=request.getRequest().getSession(); 阅读全文
posted @ 2013-08-26 10:47 100Mbps 阅读(177) 评论(0) 推荐(0) 编辑
摘要: package com.dic.jdbc;import java.io.BufferedReader;import java.io.File;import java.io.FileInputStream;import java.io.IOException;import java.io.InputStreamReader;import java.util.Vector;public class ReadFile { /** * 将要执行的sql语句读入到vector * @param file * @return * @throws IOExcep... 阅读全文
posted @ 2013-08-15 17:13 100Mbps 阅读(634) 评论(0) 推荐(0) 编辑
摘要: 今天在复习jdbc时发现 ,语句在pl/sql 里执行,妥妥的,而已到jdbc里就报异常ORA-00911,后来查阅发现,sql语句在jdbc里不能有“;” 这个有点扯不过先记下来再说。 阅读全文
posted @ 2013-08-15 15:12 100Mbps 阅读(95) 评论(0) 推荐(0) 编辑
摘要: $('#'+id+'_busiType').change(function(){ alert("yes");} 阅读全文
posted @ 2013-08-09 15:51 100Mbps 阅读(324) 评论(0) 推荐(0) 编辑
摘要: var option = $("").val(11).text("heisetoufa"); $(".mysel").append(option); 比如1、设置value为pxx的项选中 $(".selector").val("pxx");2、设置text为pxx的项选中 $(".selector").find("option[text='pxx']").attr("selected",true); 这里有一个中括号的 阅读全文
posted @ 2013-08-06 14:39 100Mbps 阅读(374) 评论(0) 推荐(0) 编辑
摘要: $('#'+selectName+' option').size()遍历select$('#select option').each( function(){ $(this).val(); $(this).text(); $(this).remove(); });select 选中的值本来以为jQuery("#select1").val();是取得选中的值,那么jQuery("#select1").text();就是取得的文本。这是不正确的,正确做法是:jQuery("#select1 optio 阅读全文
posted @ 2013-08-02 16:22 100Mbps 阅读(110) 评论(0) 推荐(0) 编辑
摘要: package com.tydic.test;import java.lang.reflect.InvocationTargetException;import java.lang.reflect.Method;public class TestReflect{ public static T execute(Class clazz,String method,Object args,Class result) throws InstantiationException, IllegalAccessException { Object obj=clazz.newInsta... 阅读全文
posted @ 2013-08-02 16:13 100Mbps 阅读(224) 评论(0) 推荐(0) 编辑