Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
 
Python and Tcl - public course schedule [here]
Private courses on your site - see [here]
Please ask about maintenance training for Perl, PHP, Lua, etc
 
Java Server Pages - putting it all together

I've been teaching Java Server Programming to newcomers this week ... and here are three example that I wrote today, pulling much of the work together.

1. An example of a JSP (Java Server Page) that opens and reads an entire file into an ArrayList of (in this case) String objects, then performs an analysis of that ArrayList and provides the result back to the user. [here]

2. A simple JSP that reads data from a form, then calls up business logic that's encapsulated in a class elsewhere in the web application. The code for the JSP is [here] and the class it calls up is [here].

3. Java Server Pages can use tag libraries rather than Java source code to call up constructors and methods (provided that they conform to the Java Bean standard). That means that the team members who are writing the look and feel pages (the graphic artists who are defining the view) don't neet to be Java programmers. The third JSP example uses basic tag libraries (and I have included the equivalent Java code as comments to help you read what it is doing). The source is [here]. The Java bean class that it calls may be found [here].

(written 2010-02-26)

 
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
J909 - Java - Putting it all together
  [4305] Learning to program in Java - yes, we can help. - (2014-09-26)
  [2525] Using JSPs, Tag Libraries, Java Beans, Tomcat in one short example - (2009-12-04)


Back to
Reading and writing cookies in Java Servlets and JSPs
Previous and next
or
Horse's mouth home
Forward to
Java - from applets to servlets. JSPs and more
Some other Articles
Want to do a big batch edit? Nothing beats Perl!
Melksham Carnival
Python - what is going on around me?
Java - from applets to servlets. JSPs and more
Java Server Pages - putting it all together
Reading and writing cookies in Java Servlets and JSPs
Calculation within objects - early, last minute, or cached?
Getting a phone line changed ...
Length, size or capacity in Java?
Java arrays - are they true arrays or not?
4759 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2019: 404 The Spa • Melksham, Wiltshire • United Kingdom • SN12 6QL
PH: 01225 708225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/mouth/2653_Jav ... ether.html • PAGE BUILT: Sat May 27 16:49:10 2017 • BUILD SYSTEM: WomanWithCat