- 浏览: 278521 次
- 性别:
- 来自: 北京
-
最新评论
-
zhuzhuhenzhencheng:
密码是什么啊
Ext表格(Grid)上面的悬浮提示 -
鹿惊_:
确实如雪中送炭般温暖!
Ext扩展整理后吐血奉献 -
ortega1_2_3:
该版本貌似有bug,当sockIOPool的自平衡线程self ...
Java MemCached Window简单实现 -
q6952592:
好。解决了我的兼容模式下出现的问题。
Ext表格(Grid)上面的悬浮提示 -
fei33423:
请参考 fei33423的文章 java中直接调用groovy ...
Groovy应用(Java与Groovy间相互调用)
文章列表
Spring2.5中Spring和Hibernate的配置应用:
<?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:p="http://www.springframework.org/schema/p" ...
<html>
<script>
function a(){
document.write(
"屏幕分辨率为:"+screen.width+"*"+screen.height
+"<br />"+
"屏幕可用大小:"+screen.availWidth+"*"+screen.availHeight
+"<br />"+
"网页可见区域宽:"+document.body.clientWidth
+ ...
在你得 web.xml 文件里面加上下面的配置信息:
<filter>
<filter-name>OpenSessionInViewFilter</filter-name>
<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>OpenSess ...
直接上代码
js对文字进行编码涉及3个函数:escape,encodeURI,encodeURIComponent,相应3个解码函数:unescape,decodeURI,decodeURIComponent
1、 传递参数时需要使用encodeURIComponent,这样组合的url才不会被#等特殊字符截断。
例如:<script language="javascript">document.write('<a href="http://passport.baidu.com/?l ...
原本是 ibatis-2.3.4 中的一个例子 但是发现例子中有少量的错误,以及功能并不全面所以加以修改
首先创建一个 实体bean
Account.java
public class Account {
private int id;
private String firstName;
private String lastName;
private String emailAddress;
public int getId() {
return id;
}
public void setId(int id) {
...
1、安装Aptana IDE
本程序应用的是Aptana Studio 2.0
2、安装好 Aptana 开发工具之后 安装ExtJS及Air插件
点击这里的 Install Plugins 进行安装 ExtJS支持
选择安装 ExtJS ,单击 Get it 我这里已经将ExtJS的支持已经加了进去所以显 ...
Ext XTemplate的应用:
template.js
Ext.onReady(function(){
//定义模板 使用标签tpl和操作符for
var tpl1 = new Ext.XTemplate(
'<table border=1 cellpadding=0 cellspacing = 0>',
'<tr><td colspan=2 align=center>For循环便利数据</td></tr>' ...
用鼠标中键来调整编辑器或者视图的大小
下载地址:http://aodaren.com/easy-middle-button/download/
Use Eclipse update manager to install this plug-in:
Update Site URL: http://aodaren.com/ec-plugins/update
首先定义一个properties文件放到classpath路径下
systemConfig.poperties
##comboBox
user.status=[0:禁用],[1:启用]
user.sex==[0:男],[1:女]
读取properties文件的Java代码:
ReadProperties.java
package com.hwasun.utils;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.Inp ...
JSP中获得当前应用的相对路径和绝对路径
//根目录所对应的绝对路径:
request.getRequestURI()
//文件的绝对路径:
application.getRealPath(request.getRequestURI());
//当前web应用的绝对路径 :
application.getRealPath("/");
//取得请求文件 ...
首先定义一个html页面:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" ...
java的反射原理:
测试类:
package com.jlee.test;
public class MyBean {
private Integer id ;
private String name ;
private Long amount ;
private boolean isRight ;
private double num ;
private static String clazzProperty ;
public static String getClazzProperty() {
return clazzPro ...
将ExtJS Grid 中的record逐一转化为Bean,实现批量的添加或者修改
package com.hwasun.utils;
import java.lang.reflect.Field;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import net. ...
定义实体
package com.jlee06.QL;import java.util.Date;import javax.persistence.Column;import javax.persistence.Entity;import javax.persistence.FetchType;import javax.persistence.GeneratedValue;import javax.persistence.GenerationType;import javax.persistence.Id;import javax.persistence.JoinColumn;import j ...
首先从Hibernate官方网站下载并解压Hibernate Annotations的发布包。
这个预览版要求使用Hibernate 3.1.1或更高版本。请不要和老版本的Hibernate 3.x混合起来使用。
这个版本在Hibernate core 3.1.1的基础上工作良好。
首先确定你已 ...