`
文章列表

页面做分页

    博客分类:
  • JS
 
/** * 跳转 * * @param 跳转的页号 */ function jumpPage(pageNo) { $("#pageNo").val(pageNo); $("#listForm").submit(); } //输入页码然后跳转 function goPage(){ if($("#goPageNo").val()>=1){ if($("#goPageNo").val()<=$("#totalPage&qu ...

jQuery Ajax 全解析

    博客分类:
  • JS
来源:http://www.cnblogs.com/qleelulu/archive/2008/04/21/1163021.html jQuery Ajax 全解析 本文地址: jQuery Ajax 全解析 本文作者:QLeelulu 转载请标明出处! jQuery确实是一个挺好的轻量级的JS框架,能帮助我们快速的开发JS应用,并在一定程度上改变了我们写JavaScript代码的习惯。 废话少说,直接进入正题,我们先来看一些简单的方法,这些方法都是对jQuery.ajax()进行封装以方便我们使用的方法,当然,如果要处理复杂的逻辑,还是需要用到jQuery. ...

SIteMesh介绍

    博客分类:
  • JS
来源:http://limuquan.iteye.com/blog/251521 一、SIteMesh介绍 一、SiteMesh简介 SiteMesh是由一个基于Web页面布局、装饰以及与现存Web应用整合的框架。它能帮助我们在由大量页面构成的项目中创建一致的页面布局和外观,如一致的导航条,一致的banner,一致的版权,等等。 它不仅仅能处理动态的内容,如jsp,php,asp等产生的内容,它也能处理静态的内容,如htm的内容,使得它的内容也符合你的页面结构的要求。甚至于它能将HTML文件象include那样将该文件作为一个面板的形式嵌入到别的文件中去。所有的这些,都是GOF的Deco ...
1、 <c:forEach items="${signBusList}" var="sign" varStatus="xh">        ${xh.count}序号从1开始       ${xh.index}序号从0开始       ${xh.last}最后一个序号      ${xh.first}第一个序号 </cforEach> 2、 <c:set value="${(page.pageNo-1)*page.pageSize}" var="i&qu ...
Caused by: org.hibernate.MappingException: Repeated column in mapping for entity: com.ambow.lmsx.enrollment.entity.EnrStudentInfo column: fclass_code (should be mapped with insert="false" update="false") 重复映射了,这个字段又映射了别的实体 /*@Column(name="FSPECIAL_CODE") public Strin ...
Spring参考手册 mvc:default-servlet-handler This tag allows for mapping the DispatcherServlet to "/" (thus overriding the mapping of the container's default Servlet), while still allowing static resource requests to be handled by the container's default Servlet. 这个标签吧DispatcherServlet 映射到" ...
Tomcat手动部署WEB项目 第一种方法:server.xml <Context   path="/hello"   docBase="D:/tool/myeclipse/workspace/aa/WebRoot"   debug="0"   privileged="true" > </Context > Host节点里添加 第二种方法:写xml文件 <?xml version='1.0' encoding='utf-8'?> <Context crossC ...
在Spring与Hibernate集成时在web.xml要加入这样的过滤器: <filter> <filter-name>openSessionInView</filter-name> <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class> <init-param> <param-name>sessionFactoryBeanName</param-name> &l ...
Caused by: org.hibernate.MappingException: Repeated column in mapping for entity: com.ambow.lmsx.enrollment.entity.EnrStudentInfo column: fclass_code (should be mapped with insert="false" update="false") 一个或多个字段已经映射过,比如定义了字段对应的变量,对变量做了get,set方法,但是该字段又在一对多,多对一的时候映射了其他的实体,就会出这样的问题 ...
ORA-00904: "ENREMPINFO7_"."FSTUDENT_CODE": invalid identifier 看清是哪个表出了问题,不然很累ENREMPINFO
解决:将int类型转成BigDecimal类型就可以了 filtrationList.add(new Filtration(MatchType.EQ,BigDecimal.valueOf(0),"fisRemove")); java.lang.ClassCastException: java.lang.Integer cannot be cast to java.math.BigDecimal at org.hibernate.type.BigDecimalType.set(BigDecimalType.java:51) at org.hibernate.type.N ...

jquery.validate全攻略

    博客分类:
  • JS
一、准备工作 需要JQuery版本:1.2.6+, 兼容 1.3.2 官网地址:http://bassistance.de/jquery-plugins/jquery-plugin-validation/ 最新版本:1.5.5 本地下载:jquery.validate.zip 二、默认校验规则 (1)required:true 必输字段 (2)remote:"check.php" 使用ajax方法调用check.php验证输入值 (3)email:true 必须输入正确格式的电子邮件 (4)url:true 必须输入正确格式的网址 (5)date:true 必须输入正确格式 ...
Hibernate中Criteria的完整用法 最近在项目中使用 Spring 和 Hibernate 进行开发,有感于 Criteria 比较好用,在查询方法  设计上可以灵活的根据 Criteria 的特点来方便地进行查询条件的组装。现在对 Hibernate的Criteria 的用法进行总结:    Hibernate 设计了 CriteriaSpecification 作为 Criteria 的父接口,下面提供了 Criteria和DetachedCriteria 。    Criteria 和 DetachedCriteria 的主要区别在于创建的形式不一样, Criteria ...
BeanNotOfRequiredTypeException: ***but was actually of type [$Proxy6] 博客分类: 异常汇总 BeanNotOfRequiredTypeExceptionCGLIB 今天自己搭建框架的时候,出了这个问题,出现这个异常,spring框架AOP才用JDK动态代理只能对实现了接口的类实现动态代理,而不能针对类,我自己在搭建项目的时候没有用接口的模式,所以在应用启动时候,配置AOP事务 的时候会扫描你的service层,service层用到了Dao层的接口代理模式(spring 默认) 因为我没有采用接口模式编程,所以报错... ...
解决办法:要将注册在action里的属性改成接口,比如IBaseService<User> userService Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'courseInfoService' must be of type [com.ambow.lmsx.enrollment.service.CourseInfoService], but was actually of type [$Proxy25] at org.springframewo ...
Global site tag (gtag.js) - Google Analytics