Three jsp directives
1. the page
directive
first, refere the explaination of it in jsp specificiation:
the page directive defines a number of page dependent properties and communicates these to the JSP container.
this directive is so common that always can be see in the top o ...
- 20:13
- 浏览 (102)
- 评论 (0)
- 分类: java se&ee
in many j2ee applications, especially which developed by light-weight framework,such as struts, we can easily see the url pattern as follows :
写道
http://localhost:8080/app/module/action.do?id=x&
In contrast, the url pattern used by ruby on rails applications are totally different: ...
- 21:12
- 浏览 (73)
- 评论 (0)
- 分类: java se&ee
什么是序列化
java中的序列化(serialization)机制能够将一个实例对象的状态信息写入到一个字节流中,使其可以通过socket进行传输、或者持久化存储到数据库或文件系统中;然后在需要的时候,可以根据字节流中的信息来重构一个相同的对象。序列化机制在java中有着广泛的应用,EJB、RMI等技术都是以此为基础的。
正确使用序列化机制
一般而言,要使得一个类可以序列化,只需简单实现java.io.Serializable接口即可。该接口是一个标记式接口,它本身不包含任何内容,实现了该接口则表示这个类准备支持序列化的功能。如下例定义了类Person,并声明其可以序列化。
publi ...
- 21:48
- 浏览 (694)
- 评论 (0)
- 分类: java se&ee
JDK的java.lang.Object类中实现了equals函数,其定义说明如下:
引用
public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.
The equals method implements an equivalence relation on non-null object references:
[list=5]
It is reflexive: for ...
- 12:03
- 浏览 (1059)
- 评论 (2)
- 分类: java se&ee
- 浏览: 3142 次
- 性别:

- 来自: 北京

- 详细资料
搜索本博客
最新评论
-
对java中equals和hashCode ...
谢谢博主的详细解释. 不过有一个问题: 引用在Object类equals函数 ...
-- by rmn190 -
对java中equals和hashCode ...
明白了,谢谢
-- by NicholasBugs






评论排行榜