摘要: 第一种:?method=addUI&parentid=${param.parentid}'" value="添加类别">第二种:通过onclick事件 onclick="method()"method(){window.location.href="xxxx.do?parame1='v1'&para... 阅读全文
posted @ 2014-09-03 20:33 tom0 阅读(1052) 评论(0) 推荐(0)
摘要: 公司需要 阅读全文
posted @ 2013-04-27 11:02 tom0 阅读(78) 评论(0) 推荐(0)
摘要: 覆写(override)一个实例方法可以覆写(override)在其超类中可访问到的具有相同签名的所有实例方法,从而使能了动态分派(dynamic dispatch);换句话说,VM 将基于实例的运行期类型来选择要调用的覆写方法。覆写是面向对象编程技术的基础,并且是唯一没有被普遍劝阻的名字重用形式:class Base {public void f() { }}class Derived extends Base {public void f() { } // overrides Base.f()}隐藏(hide)一个域、静态方法或成员类型可以分别隐藏(hide)在其超类中可访问到的具有相同名 阅读全文
posted @ 2013-04-26 00:13 tom0 阅读(199) 评论(0) 推荐(0)
摘要: public class test1 { public void test(String str){ System.out.print(str); } public static void main(String[] args) { test1 t = new test1(); t = null; t.test("abc"); }}会能通过编译,不能运行的会报错的哦!Exception in thread "main" java.lang.NullPointerExceptionat com.test.test1.main(test1.java:10) 阅读全文
posted @ 2013-04-25 23:57 tom0 阅读(112) 评论(0) 推荐(0)
摘要: <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"><hibernate-configuration> <session-factory> <property name="show_sql">false</propert 阅读全文
posted @ 2013-04-25 23:29 tom0 阅读(127) 评论(0) 推荐(0)
摘要: <?xml version="1.0" encoding="UTF-8"?><!-- - Application context definition for JPetStore's business layer. - Contains bean references to the transaction manager and to the DAOs in - dataAccessContext-local/jta.xml (see web.xml's "contextConfigLocation" 阅读全文
posted @ 2013-04-25 23:25 tom0 阅读(201) 评论(0) 推荐(0)
摘要: <?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java 阅读全文
posted @ 2013-04-25 23:23 tom0 阅读(153) 评论(0) 推荐(0)