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
Java Programming for the Web,
Java Bootcamp
Examples from our training material
| Store6.java | Store class, used to maintain state in JSP demo |
| bookjava.jsp | Replacing Java Source code with Tags - some equivalents |
| 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 |
| 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.
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?
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 <%!
Using scripting elements in a JSP file.
Mingling scripting elements with tags.
When are the scripting elements executed?
How to run the examples.
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 600 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.