You can put client's browser
Java Server Pages (JSP) could
Before to start to examine
Session are very helpful to
a cookie in JSP easily.
handle any erros that might
this sample code, you need a
associate some data with
Following example displays
be arised in scriptlets,
SMTP server. If you know
each visitor. You may pass
how to create cookie and set
expressions, or other JSP
your mail server name you
and retrieve values in
target browser.
elements. You could use
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, 21 2006 Date: Mar, 22 2006 Date: Mar, 21 2006 Date: Mar, 21 2006 |