`
文章列表
  ibatIS中的parameterClass,一般分类两种,1种为传model,另一种为传map   一、parameterClass传model参数 <select id="queryModel" parameterClass="com.hanpeng.base.phone.model.TDictionary" resultClass="com.hanpeng.base.phone.model.TDictionary"> SELECT D_CODE as dCode , D_NAME ...
isNull判断property字段是否是null,用isEmpty更方便,包含了null和空字符串   例子一: isEqual相当于equals,数字用得多些,一般都是判断状态值 <isEqual property="state" compareValue="0"> < /isEqual> 或 <isEqual property="state" compareProperty="nextState"> < /isEqual>   例子一: 传入 ...
Apache Commons 是一个非常有用的工具包,解决各种实际的通用问题,你会发现它们正是你冥思苦想所需要的东西。它们不是绝世武功,但确是个随手可用的擒手,Commons一出,问题手到擒来。常用的有: commons-lang commons-collectio ...
XXX平台要实现一个功能,公告弹出页面上使用复选框设置不再通知此类公告。   原理:<input type="checkbox" id="isSelect" name="isSelect" value="10" onclick="javascript:noTips();"/>,checkbox选中后提交表单,那么struts2的Action中isSelect就为'10',不选中提交表单isSelect为null。   1.jsp页面 <form id="f ...
####我的应用 String path="D:\\b2cPlatform\\onlinePayment"; imgPath = path.replace("\\", "/");   乍一看,字面上理解好像replace只替换第一个出现的字符(受javascript的影响),replaceall替换所有的字符,其实大不然,只是 ...
###例子 $("#top_notice").css("display", "block");//第1种方法 //$("#top_notice").attr("style", "display:block;");//第2种方法 //$("#top_notice").show();//第3种方法     1.给元素换class,来实现隐藏div,前提是换的class样式定义好了隐藏属性 $("#sendPhoneNum").a ...
var name = $('#file').val(); var fileName = name.substring(name.lastIndexOf(".")+1).toLowerCase(); if(fileName!='jpg'){ divInput.html("只允许上传jpg格式图片!"); rtvalue = false; }    

jquery 二级联动

jquery 二级联动
一、Random()随机数      转自:http://blog.chinaunix.net/space.php?uid=12926986&do=blog&id=111719   import java.util.Random; /** * Java实用工具类库中的类java.util.Random提供了产生各种类型随机数的方法。 * 它可以产生int、long、float、double以及Goussian等类型的随机数。 * java.lang.Math中的方法random()只产生double型的随机数。 */ public class RandomNumb ...
用jboss发布的工程,测试request对象返回路径的方法,如下: System.out.println(LoginAction.class.getResource("/").getPath()); System.out.println(this.getRequest().getContextPath()); System.out.println(this.getRequest().getRealPath("/images/icon")); System.out.println(this.getRequest().getRequestURI()) ...
一、ibatIS调用存储过程(调用存储过程,统一使用StoredProcedure.xml) 1.SaleManagerAction代码: /**  * 导入单边  * @return  * @author  Invalid  * @throws Exception  * @date 2011-11-9 上午09:46:51  */ public String importUnilateralSaleUpload() throws Exception{     Map<String,Object> result = new HashMap<String,O ...
  4.myeclipse的批量修改功能  window--Customize Perspective--Command Groups项中将Editor Presentation打勾  Tool Bar Visbility中,展开Editor Presentation将前两个选项(Toggle、show Whitespace)打勾,OK  然后在myeclipse工具栏上就能看到刚才的两个功能,打开文件就可以使用了     5.myeclipse不自动编译配置文件到class目录解决办法 myeclipse不能自动将class、struts.xml、jdbcOracle.prop ...
一版XXX中的更新内存的接口应用:   一、定义一个有返回值的接口:  /** * 后台更新调用此方法更新前台内存数据 * @author lvwenyong * @date 2011-5-31 下午01:42:16 */ @SuppressWarnings("unchecked") public void reload(){ try { Class clazz= Class.forName(getRequest().getParameter("cn")); Method m = clazz.getDecla ...
查找数据库中所有字段 以对应的表 select C.column_name,C.TABLE_NAME from dba_tab_columns C where owner='' 查每个科目class 分数scro前三名 select id, name, class, scro from (select row_number() over(partition by class order by scro desc) cnt, id, name, class, ...
今天付出了惨痛的代价,调sqlMap文件调了一下午,杯具啊!!!!!!!!!!!   1.首先看我错误的xml文件代码 <select id="count" parameterClass="com.hanpeng.base.phone.model.TCommission" resultClass="java.lang.Integer"> SELECT count(*) FROM T_COMMISSION t1,t_product_type t2,T_BUSSINESS_S ...
Global site tag (gtag.js) - Google Analytics