|
You can put client's browser
Session are very helpful to
Java Server Pages (JSP) could
Before to start to examine
a cookie in JSP easily.
associate some data with
handle any erros that might
this sample code, you need a
Following example displays
each visitor. You may pass
be arised in scriptlets,
SMTP server. If you know
how to create cookie and set
and retrieve values in
expressions, or other JSP
your mail server name you
target browser.
diffrent page using
elements. You could use
could easily use this sample
sessions. All sessions are
try/cacth blocks to handle
code in a real website. We
an object associated with
any known erros. In this
will use JavaMAIL API. You
each web client. In this
technic we could use to
must put j2ee.jar under
sample code we will create a
display a custom error on
WEB-INF/lib folder in your
session named `username` and
our file where unhandled
web work folder. Our testing
later put a value inside our
exception is thrown.
system is Red Hat Linux with
new Session object. On next
Tomcat 5.
step we will get our session
value. .
Date: Mar, 21 2006 Date: Mar, 21 2006 Date: Mar, 22 2006 Date: Mar, 21 2006 |