Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact

Related technical and longer articles
Sessions in Servlets
Tips and short articles on this subject
Reading and writing cookies in Java Servlets and JSPs
Servlet life cycle, and Java Servlet variable scope
javax.servlet cannot be resolved - how to solve
Java (JSP and Servlet examples) live on our server
Single login and single threaded models - Java and PHP
New servlet from old
Well House Consultants
You are on the site of Well House Consultants who provide Open Source Training Courses and business hotel accommodation. You are welcome to browse and use our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Java Resources
Well House Manor Resources
Perl Resources
Python Resources
PHP Resources
Object Orientation and General topics
MySQL Resources
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
Extras Resources
C and C++ Resources
Ruby Resources
Tcl/Tk Resources
Web and Intranet Resources
Java module J906
Servlets in More Detail
Exercises, examples and other material relating to training module J906. This topic is presented on public courses Learning to Program in Java, Java Bootcamp, Java Programming for the Web

Learning to Program in Java - Writing Java programs for newcomers to programming. This course introduces you to programming in the Java programming language. ...
http://www.wellho.net/course/sjfull.html  [course]
Java Bootcamp - An intense course on Java programming, Servlets and JSPs This course introduces you to the Java programming language, and its Internet ...
http://www.wellho.net/course/bjfull.html  [course]
Java Programming for the Web - Learn to write server- or client-side applications in Java. This course introduces you to the Java programming language, ...
http://www.wellho.net/course/jpfull.html  [course]
The following examples show the newer session tracking API in use within Servlets. The first time a user runs the Barman servlet, it sets up a session ...
http://www.wellho.net/solutions/java-ses ... vlets.html  [longer article]
Two common problems in compiling Servlets for use within a Tomcat container ... PROBLEM: My Java Compile of a Servlet says "javax.servlet cannot be ...
http://www.wellho.net/mouth/1909_jav ... solve.html  [short article]
If you write a 'traditional' program and run it ... then it is cleared from memory when you finish running it. It does its job then exits. And so it ...
http://www.wellho.net/mouth/2183_Ser ... scope.html  [short article]
On Apache Tomcat courses, I find myself explaining "single login" models and on some Java courses I explain single threaded models. In both cases, there ...
http://www.wellho.net/mouth/1495_Sin ... d-PHP.html  [short article]

If you're writing a substantive web application, you're likely to have a number of visitors to your site at the same time, with each of them calling up a series of screens. In this module, we examine parameter handling, session control, and the persistence of servlets from one call to the next.

This topic is presented on public courses Learning to Program in Java, Java Bootcamp, Java Programming for the Web

Examples from our training material
Barman.java   Web server / Servlet Sessions - simple demo
HelloServlet.java   Hello Servlet World
Landlord.java   Web Server / Servlet / Sessions, with session interaction
PubWatch.java   Tracking and sessions for clustering demo
Background information
This module is available under an Open Training Notes License for free download from http://www.training-notes.co.uk.
Topics covered in this module
Introduction.
What is a Servlet?.
How do Servlets fit into the scheme of things?.
What alternatives are there to servlets?.
Servlet Engines.
Java Class Structure.
Data Interface.
A first servlet.
Reading from a form.
At a higher level.
Get v Post.
The life of a servlet.
Initialisation.
Destruction.
Example procedure - take an application of ours, modify, re-upload.
Maintaining State.
Session Objects.
Rewriting URLs.
Hidden fields.
Programming techniques.
Webifying output.
Keeping code and pages separate.
State Diagrams.
Other facilities of servlets.
Multiuser Servlets.
Servlet Descriptions.
Cookies.
Sessions in Servlets.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule page.

Well House Consultants specialise in training courses in Java,Python, Perl, PHP, and MySQL. We run Private Courses throughout the UK (and beyond for longer courses), and Public Courses at our training centre in Melksham, Wiltshire, England. It's surprisingly cost effective to come on our public courses - even if you live in a different country or continent to us.

We have a technical library of over 700 books on the subjects on which we teach. These books are available for reference at our training centre. Also available is the Opentalk Forum for discussion of technical questions.


You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2010: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 344596 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho