NOTE: These slides have not been updated since 2003. They have been superseded by the book
An Introduction to XML and Web Technologies
Addison-Wesley, and the accompanying online material. Please see
http://www.brics.dk/ixwt/
for more information.
Anders Møller and Michael Schwartzbach, February 2006
INTERACTIVE WEB SERVICES WITH JAVA
The Page and Seslet Classes
- alternatives to the
Session
class.
Page
:
only
one client interaction
(no
show
statements, only
exit
)
resembles Servlets or JSP (together with code gaps)
allows more efficient implementation (since thread has short life time)
Seslet
:
intended for interaction with non-XHTML clients, e.g.
applets
input/output is supplied using an
InputStream
and
OutputStream
Other variants can be imagined, e.g.
CachedPage
, an automatically cached version of
Page
.
COPYRIGHT © 2002-2003 ANDERS MØLLER & MICHAEL I. SCHWARTZBACH