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]
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articlesJ909 - Java - Putting it all together 
Using JSPs, Tag Libraries, Java Beans, Tomcat in one short example - (2009-12-04)
Some other Articles
Want to do a big batch edit? Nothing beats Perl!Melksham CarnivalPython - what is going on around me?Java - from applets to servlets. JSPs and moreJava Server Pages - putting it all togetherReading and writing cookies in Java Servlets and JSPsCalculation 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?
4207 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 at 50 posts per page
This is a page archived from The Horse's Mouth at
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).