- 浏览: 104177 次
- 性别:
- 来自: 深圳
-
最新评论
文章列表
/********************************************************************************
**
* 打开新窗口
*/
function openWindow(i_URL, i_Width, i_Height) {
openWindow(i_URL, i_Width, i_Height, null, null);
}
function openWindow(i_URL, i_Width, i_Height, i_Feature) {
openWindow(i_URL, i_Width, i_Heigh ...
- 2011-12-30 15:21
- 浏览 669
- 评论(0)
extjs文档中tree文件夹下的reorder.html和two-trees.html等例子,因为节点的内容为php所有在tomcat下无法查看。
所以我们需要让tomcat支持php:
1.baidu 下载PHP 5.3.8 for Windows
地址:http://xiazai.zol.com.cn/detail/4/38877.shtml
2.在环境变量设置中的Path中加入php的路径,例如: D:\soft\php-538
3.复制一份php.ini-development 将他的名字修改为php.ini 就可以了。
PS: baidu文档中说需要加入:extensio ...
- 2011-12-10 11:59
- 浏览 701
- 评论(0)
花了老子一天的时间,可见这东西有多麻烦啊。
不过对布局有了了解:在formPanel中的items中每一行为一个column,每一个column中又包含一个form布局的panel,
其中xtype : "textfield"不能设置为default,否则会显示不出textfield
Ext.onReady(function() {
// 表单提交执行的方法
function doSubmit() {
if (Ext.getCmp("reg_form").getForm().isValid()) {
Ext.getCmp(&qu ...
- 2011-12-09 16:27
- 浏览 620
- 评论(0)
特别声明: 最近想用业余时间学习EXTJS,纯属娱乐。请勿模仿。
官方下载地址: http://extjs.com/deploy/ext-2.0.2.zip
1.JSP头部引入EXTJS,使用fire-bug可以在控制台看到需要哪些文件夹下的哪些图片:
<%
String path = request.getContextPath();
%>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control&qu ...
- 2011-12-08 21:33
- 浏览 677
- 评论(0)
action:
List<User> result = (List<User>) = dao.queryLock("from User po where id=?", LockMode.UPGRADE,"1");
dao:
public Object queryLock(final String hql, final LockMode lockMode, final Object... params) {
return this.getHibernateTemplate().execute(new HibernateCal ...
- 2011-12-01 12:02
- 浏览 708
- 评论(0)
1.枚举类:
public enum AreaType implements IEnumConverter {
FZ("福州", 591),
XM("厦门", 592);
private String text;
private Integer value;
private AreaType(String text, Integer value) {
this.text = text;
this.value = value;
}
@Override
public String getName() {
retu ...
- 2011-12-01 11:06
- 浏览 551
- 评论(0)
参考说明地址:http://struts.apache.org/2.1.6/docs/convention-plugin.html
Action:
@Results(value = { @Result(name = "success", location = "success.jsp"),
@Result(name = "error", location = "error.jsp"),
@Result(name = "testMethod", location = "/t ...
- 2011-11-27 22:02
- 浏览 620
- 评论(0)
之前有写过helloworld可是写得很差,我想一定有很多人看不懂。现在我将步骤截图下来
1.创建服务器端,创建一个web Services Project
2.创建一个接口和一个实现类
public interface IWearther {
/**
* @return 返回字符串,用于显示天气
*/
public String wearther();
}
public class IWeartherImpl implements IWearther {
/**
* @return 返回字符串,用于显示天气
*/
public String ...
- 2011-11-13 14:33
- 浏览 661
- 评论(0)
转自:
http://topic.csdn.net/u/20100802/19/68f750ad-edad-4d36-95f5-2d6442c2cd85.html
和
http://blog.sina.com.cn/s/blog_02b6f23d0100d3mm.html
选择其中一个足矣,我选择其中一个修改后供日常使用.
/**
* 用于对字符串进行MD5加密的工具类
*/
public class MD5Util {
private MessageDigest md5 = null;
private StringBuffer digestBuffer = nu ...
- 2011-11-01 11:08
- 浏览 653
- 评论(0)
个人觉得要熟练运用正则不是件容易的事情,所以需要在工作中不断的学习,这篇文章蛮不错的。有的时候忘记了如何使用可以回头看下,所以转载,并对作者表示感谢。
本文转载自closewbq的博客:
http://blog.csdn.net/closewbq/article/details/5704158
1.什么是正则表达式?
正则表达式就是使用某种模式去匹配字符串的公式。
可以说任何的编程语言都提供的机制。
2.正则表达式使用的场合
•表单验证:如长度验证,邮件格式验证等等。
•字符串处理:如匹某条数据的某段信息,将字符串进行分割,替换等操作。
3.正则表达式的 ...
- 2011-10-30 23:29
- 浏览 736
- 评论(0)
<script type="text/javascript">
// 去左右空格
function trim(str){
return str.replace(/^\s+|\s+$/g,'');
}
var powers=new Array("7","9","10","5","8","4","2","1","6","3","7&q ...
- 2011-10-24 17:34
- 浏览 739
- 评论(0)
转载自:http://www.cnblogs.com/leadzen/archive/2008/09/06/1285764.html
<script type="text/javascript">
var Sys = {};
var ua = navigator.userAgent.toLowerCase();
var s;
(s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] :
(s = ua.match(/firefox\/([\d ...
- 2011-10-21 17:05
- 浏览 585
- 评论(0)
package com.text;
import java.text.MessageFormat;
/**替换{0}为指定的字符串*/
public class MessageFormatTest {
public static void main(String[] args) {
String message = "hello {0}{1}";
message = MessageFormat.format(message ,"world","!!!");
System.out.println(m ...
- 2011-10-12 10:49
- 浏览 648
- 评论(0)
package com.text;
import java.text.Collator;
import java.text.RuleBasedCollator;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Locale;
/**对汉字进行排序*/
public class RuleBasedTest {
pu ...
- 2011-10-12 10:46
- 浏览 602
- 评论(0)
序列到最大值后从最小值开始
create sequence seq_1
minvalue 1
maxvalue 3
start with 1
increment by 1
cycle;
当序列到达最大值时,会变为最小值。
- 2011-10-12 10:43
- 浏览 598
- 评论(0)