`
zkh43javaeye
  • 浏览: 86569 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论
文章列表
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd "> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> ...
set JAVA_OPTS=%JAVA_OPTS% -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1040 -Duser.timezone=America/Chicago -Dfile.encoding=GBK -Xms256m -Xmx768m 设置在tomcat/bin/catalila.bat 70行左右,很多注释的下面.  
1.CompareCarInfo compare = new CompareCarInfo(carSearchRequest.getCarSortType()); Collections.sort(carsInfo, compare); 2. import java.util.Comparator; import com.b2r.travel.car.domain.CarInfo; import com.b2r.travel.car.service.CarSortType; public class CompareCarInfo implements Comparator&l ...
1. import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public class T { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int hour = 12; try{ SimpleDateF ...
//Some scripts require that you run something immediately after the web page finishes loading. var start; window.onload = function () { if(document.all) {//简单判断是否是IE start = setInterval('init()', 200); } else { var element = document.getElementById("fade"); eleme ...
<style type="text/css"> .black_overlay{ position: absolute; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:1000;//使其div在高层,用户无法点击底层事件. opacity:.2;//支持firefox filter: alpha(opacity=20);//支持ie } ...
import javax.servlet.http.HttpServletRequest; public class IPUtil { public static String getIpAddress(HttpServletRequest request) { String ipAddress = null; ipAddress = request.getRemoteAddr(); ipAddress = request.getHeader("x-forwarded-for"); if (ipAddress == null || ipAdd ...
1.需要在应用程序的classpath中引入两个AspectJ库:aspectjweaver.jar    和 aspectjrt.jar。   2.servlet.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns ...

Criteria使用

public List<Item> findDateByPage(Pagination pagination, long cid){ CriteriaProvider c = CriteriaProvider.getInstance(); //建立关系... c.addAssociations(c.new Association("categories", "categories")); c.addAssociations(c.new Associatio ...
No Dialect mapping for JDBC type: -1   1.<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" />   2.        return (List<Item>) getJpaTemplate().execute(new JpaCallback() {             public Object doInJpa(EntityManager em) throws Persis ...

form reset.

    博客分类:
  • js
function doReset() { document.listForm.reset(); //不是清空,而是回到上一步.如选日期1-1在search,在选日期1-2,点reset,日期回到1-1,而不是清空.}   <form:form action="/asweb/admin/item/search.do" name="listForm" id="listForm" method="post" modelAttribute="viewLogListForm"& ...
$("#categorys").treeview({ persist: "location", control: "#treecontrol", unique: true });//只展开一层 $("#categorys").treeview({ control: "#treecontrol", persist: "cookie" }); });//展开 ...

binary用法

    博客分类:
  • SQL
SELECT * FROM `fuhu_appstore`.`administrator` where binary username='ZKH'   加了binary才,区分大小写,只查出结果'ZKH',而非 'zkh'.     public CriteriaProvider searchAdminByUsername() { CriteriaProvider adminSearch = CriteriaProvider.getInstance(); adminSearch.addCriterion(Restrictions.sqlRestriction("bi ...
$(function() { $("#minCreateDate").datepicker({dateFormat: 'yy-mm-dd',showOn: 'button', buttonImage: '/asweb/images/calendar.gif', buttonImageOnly: true}); $("#maxCreateDate").datepicker({dateFormat: 'yy-mm-dd',showOn: 'button', buttonImage: '/asweb/images/calendar.gif', buttonI ...

Id和name的区别

    博客分类:
  • JSP
<input type="text" id="cname" name="ccname" class="input readOnly" readonly="readonly" value="${category.parent.name.fullName}"/>      id是客户端用的,getElementById("cname"),  name是服务器端用的 getParameter("ccname")
Global site tag (gtag.js) - Google Analytics