CGS4854 Extra Credit 1
Due Thursday 9/12 (late: 9/13 at 6am)
Create a web application named Tutorials in NetBeans. Make the first
letter uppercase and all the remaining letters lower case for the name of the
web application.
An index.jsp will be created for you automatically, when you create
the project.
- Add a folder named ec1 in Web Pages.
- Add a new JSP to the ec1 folder.
- Be sure that the file uses the new HTML 5 DOCTYPE. If the Netbeans
templates do not use the correct DOCTYPE, you will have to edit files
created by Netbeans so that they use the correct DOCTYPE.
- Be sure that the file contains valid HTML 5.
As long as you include the meta tag for the charset, you will not lose points
for a warning about the charset.
You will not lose
points if you receive an error about the form tag missing an action.
You will lose points for all other errors and warnings.
- Add a paragraph of at least fifty words to the page. The paragraph must be interesting.
- Add a three line poem to the page. You may create your own or you may use the first three lines of the poem from the book.
- Add a form with a text element and a submit button.
- Initialise the text element with the corresponding value from the query string.
- When submitted, the value of the text element should display as plain text as the fourth line of the poem.
- Add a relative link from the current page to the index page. Use .. to indicate the parent folder.
Modify the index.jsp file that is in the project. This is the first page
that will be seen when the web application is run.
- Add a relative hypertext link in index.jsp to
your new page.
- Be sure that the file uses the new HTML 5 DOCTYPE.
- Be sure that the file contains valid HTML 5.
- Modify the title to something appropriate.
Clean and Build your web application. This will create the WAR file
that you will upload.
When you are done, the Project tab of your project should look like this:
In the operating system (not in NetBeans) navigate to the dist
folder in the NetBeans project.
Upload the WAR file to me as binary: Submitting
homework on-line via the Web.