-
Notifications
You must be signed in to change notification settings - Fork 0
4 JavaBean
197 DISTRIBUTED JAVA JavaBeans 2 JavaBeans What is a JavaBean A Java class written according to the JavaBeans API specifications. § It provides a default, no
argument constructor.
§
It should be serializable and that which can implement
the Serializable interface.
§
It may have a number of properties which can be read
or written.
§
It may have a number of "getter" and "setter" methods
for the properties.
3
JavaBeans
JavaBean Properties
getPropertyName
()
Also called an accessor.
setPropertyName
()
Also called a mutator.
4
JavaBeans
Serializable
... implements
java.io.Serializable
A mechanism of converting the state of an object into a
byte stream to persist the object. Deserialization is the
reverse process where the byte stream is used to
recreate the actual Java
object in memory.
5
Cookies Handling
6
HTTP cookie
HTTP cookie or Cookie
A small piece of data sent from a website and stored on
the user's computer by the user's web browser while the
user is browsing. Cookies were designed to be a reliable
mechanism for websites to remember stateful information
(such as items added in the shopping cart in an online
store) or to record the user's browsing activity (including
clicking particular buttons, logging in, or recording which
pages were visited in the past). They can also be used to
remember arbitrary pieces of information that the user
previously entered into form fields such as names,
addresses, passwords, and credit card numbers.
Wikipedia.com
7