Lab Assignment #4
Revised: 12 June 2007
"
Not everything that can be counted counts, and not everything that counts can be counted.
"
- Albert Einstein (1879-1955)
References:
HTML Guide,
Style Sheets,
Other Links
Interactively create an ASP.Net Wiki prototype, during class demonstration.
Interactively create PHP examples during lecture.
Interactively create Java examples during lecture.
PHP assignments:
-
convert random_quote.jsp to random_quote.php. Display with a hardcoded array of quotes in PHP.
-
Convert pick_quote.jsp to pick_quote.php. Display a quote with a form-selected array index, in PHP.
-
Convert login.jsp and wiew_quotes.jsp to login.php and view_quotes.php.
Java assignments:
convert random_db_quote.php into a three part Java application:
-
random_db_quote.jsp. Calls QuoteSession.getRandomQuote() and displays.
-
QuoteSession.java. A stateless session bean. Its only method, getRandomQuote() uses Quote entity class
to get and return a random quote.
-
Quote.java. An entity that holds one quote.
Look at db2shout.jsp and, on the JSP siede, hardcode the rest (one quote at first), then add other parts.