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.