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

Tips and short articles on this subject
Using JSPs, Tag Libraries, Java Beans, Tomcat in one short example
Servlet life cycle, and Java Servlet variable scope
What is a JSP tag library?
A very easy JSP (Java Server Page)
Java (JSP and Servlet examples) live on our server
The HTML++ Metalanguage
Last day of Java
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 J907
JSP - JavaServer Pages
Exercises, examples and other material relating to training module J907. 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]
Example for first JSP Practical JSP is like a Jumbo Jet Driver Because the smallest of operators can do a mighty lot Inputs were and The total age ...
http://www.wellho.net/resources/ex.php4?item=j907/gje3.jsp  [code sample]
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]
120 Gathering items in a shopping cart
http://www.wellho.net/resources/ex.php4?item=j907/web.xml  [code sample]
On our Java Programming for the Web and Deploying Apache httpd and Tomcat courses, we provide a ready-written demonstration that includes simple web pages, ...
http://www.wellho.net/mouth/1550_Jav ... erver.html  [short article]

A Java Server Page is a web page with embedded tags that call up Java classes. It can also contain Java source code, to be compiled and run when the page is accessed.

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

Examples from our training material
Store6.java   Store class, used to maintain state in JSP demo
Tconv.java   Class for use from JSP using standard tag library
bookjava.jsp   Replacing Java Source code with Tags - some equivalents
boxes.jsp   JSP / Tag Library / Java Bean - the JSP part
counter.jsp   Sessions in a JSP
gje2.jsp   JSP example - Java separated from HTML
gje3.jsp   JSP - Form input and validation
graham.jsp   Hello JSP world
index.jsp   A Shopping cart JSP that maintains state
lovely.jsp   JSP example linking a series of pages, good practise shown
products.txt   Product data for Shopping cart demo
tcform.html   Form to read a temperature in degrees F
tcvt.jsp   JSP to read temperature in C and convert to F
web.xml   Session timeout changed to 120 minutes
Pictures
Designing an application in a JSP
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.
A simple worked example.
The structure of a JSP Page.
What basics can I put in my HTML?.
Entering data into a form.
What happens to the form data?.
What happens next?.
Example - form, data validation, initial page and and response in single script.
How To Create a Form.
A Simple Hello Application.
Constructing the HTML Form.
Using the GET and POST Methods.
Writing the Bean.
Getting Data From the Form to the Bean.
Checking the Request Object.
Getting data from the Bean to the JSP Page.
How to run the example.
Using scripting elements.
How to add scripting.
The difference between <%, <%=, and <%!.
The Number Guess Game.
Using Scripting Elements in a JSP File.
Mingling scripting elements with tags.
When are the scripting elements executed?.
How to run the example.
A JSP that maintains state.
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 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho