SWE 642: Java Server Page Examples
Current date and time
- Run the JSP
- Current date and time source
- Java version
Count to 10
- Run the JSP
- JSP source
Printing letters in black and white
- Run the JSP
- Print letters JSP source
Printing letters in color
- Run the JSP
- Letter print JSP source
- AlphabetCode bean source
Demonstration of Java Bean use
- HTML page
- JSP source
- Language Bean source
- Short installation script example
Computing GPAs -- All in one JSP
- Run the JSP
- JSP source
Computing GPAs -- With a Java "bean"
- Run the JSP
- JSP source
- GPA source
Counting in different scopes
- Run the JSP
- JSP source
- Java version of JSP
- Counter Bean source
- Forwarding, session and application scopes
Fibonacci Series
- Run the JSP
- JSP source
- Bean
- Exception handler
Fibonacci Series with bug
- Run the JSP
- JSP source
- Bean
HT Gold's forwarding examples
What happens if we print, then flush(), then forward to another component?
See Kurniawan, pg 79.
- Forwarding after a flush
source
- No forwarding after a flush
source
- No flushing, then forwarding
source
The next one was suggested by Jing Jin and implemented by Robert Pond, Spring 2009.
- No flushing, sleep, then forwarding
source
The next one was suggested by Jing Jin and Robert Pond and implemented byJeff Offutt, Spring 2009.
- No flushing, then forward to a partial date
source
source
File Viewer (from book)
- Run the JSP
- JSP source
- Bean
Student Information System
- Run info
info source
- Run email
email source
- Run grade
grade source
- Bean source
- Login
login source
- Info form
- Design (PDF)
- Servlet components:
- See the form
- studInfoSysDemo.java
- studEntryDemo.java
- parserXMLDemo.java
Resources
© Jeff Offutt, 2001 .. 2010, all rights reserved.
This document is made available for use by GMU graduate students of SWE 642.
Copying, distribution or other use of this document
without express permission of the author is forbidden.
You may create links to pages in this web site,
but may not copy all or part of the text without permission
of the author.