Fall 2011

Lab07
JSP Hello User

Due: Thursday December 09, 2010 11:59 PM

Lab07 - JSP Hello User

Requirements

Single JSP page created10 pts
JSP page contains required content20 pts
Page displays hello [name] whenever a name is entered50 pts
Page does not display blanks in place of names10 pts
Page executes without errors10 pts
Total100 pts

Resources

Objective

To create a simple webpage using JSP

Instructions

For this lab you will need to create a single JSP page that contains the words "Hello, World!" as a level one header and a form containing a text field and a submit button.

When the user first visits the page the words should be "Hello, World!" and the text field should be empty. If the user types something like a name into the textfield and clicks the submit button the page should reload and instead of saying "Hello, World!" it should change to say Hello to whatever name they entered.

An example would be that the user sees Hello, World! on the page, enters their name Victrola in the textfield and presses the submit button. When the page reloads it should then say "Hello, Victrola!" and the user could then enter a different name if they choose.