揭开正则表达式的神秘面纱
转:http://www.regexlab.com/zh/regref.htm 揭开正则表达式的神秘面纱关闭高亮[原创文章,转载请保留或注明出处:http://www.regexlab.com/zh/regref.htm]引言 正则表达式(regul...
Struts 2中的OGNL
转http://www.blogjava.net/max/archive/2007/04/28/114417.htmlStruts 2中的OGNL 本人是一个EL(Expression Language,以下译为表达式语言)的支持者。因为我对<% %>写法极为反感,忘记了在那本书上看到的一句话...
MySQL基本命令
MySQL基本命令: 创建一个管理员:1. grant all on * to baiyangshu identified by '123456' with grant option;2. revoke all privileges from baiyangshu;删除用户:3. delete from mysql.user where user='baiyan...
JAVA的IO
转:http://blog.csdn.net/bluesmile979/archive/2008/10/20/3111403.aspx就是一层一层的包装,还是比较容易理解的吧?好了,先记住上面这个比较容易理解的图例吧。接下来我们先给Java的io归归类。Java的io里面最基...
JAVA实现stack2
package com.hb.ds.stack;class Node<T> { public Node<T> previous; public T value; public Node(T value, Node<T> previous){ this.previous = previous; this.val...
JAVA实现Stack
package com.hb.stack2;import java.util.LinkedList;public class Stack2<Node> { public static void main(String[] args){ Stack2<String> stack = new Stack2<String>(); stack.p...
JAVA实现单链表
package com.hb.ds.sigleLinkList;class ListNode { ListNode next; int value; public ListNode(int value){ this.next = null; this.value = value; } &nb...
JAVA实现二叉树
package com.hb.binaryTree;class BinaryTreeNode { int data; BinaryTreeNode left; BinaryTreeNode right; public BinaryTreeNode(int data) { this.data = data; ...
JAVA实现冒泡排序
package com.hb.bubbleSort;public class BubbleSort { public static void main(String[] args){ int a[] = new int[]{1,9,3,52,5,6}; System.out.println("排序前:");&...
JAVA实现选择排序
package com.hb.selectSort;public class SelectSort { public static void main(String[] args){ int[] a = new int[] {6,1,54,2,7,8}; System.out.println("排序前:");...
JAVA快排实现 QuickSort
package com.hb.quickSort;public class QuickSort { public static void main(String[] args) { int a[] = new int[] { 12, 32, 51, 5, 5, 1, 6 }; System.out.println("排序前:");...
Hanoi递归实现
package com.hb.hanoi;public class Hanoi { private static int step =1; private static int moveTime = 0; public static void hanoi(int n, char A, char B, char C) { if (n...
struts和spring的配置实例
1.web.xml<?xml version="1.0" encoding="UTF-8"?><web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http:...
struts和spring 的整合的相关问题
1.首先以插件的方式让struts知道spring的存在: 在struts-config.xml中加入: &nb...
struts 中文乱码解决方法
。。。
jquery学习
转载:http://space.itpub.net/14518332/viewspace-433151一、说明 jQuery是近来在国外比较火的一个客户端JavaScript框架,特别是一些有关于ASP.NET MVC框架的增强探讨...
用DOM API解析xml文档
现有Student.XML文件< Student >< StuNo >HB2080001< StuName >小明< Sex >男< Brithday >1987-01-01< Telphone >13800000000< Address >北京
struts + ajax 中文乱码问题
关键的地方有两点:1.在js代码中将url编码:var temp = "query.do?studentName="+studentName+"&courseName="+courseName; var url = encodeURI(encodeURI(temp)); ...