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