CGS4825 Assignment 1
Due Monday, 9/19 at 11:59 pm.
To hand in the assignment, zip your webapps directory and upload
it via the web:
Submitting
homework on-line via the Web.
Be sure that all your files and subdirectories are included in the zip
file.
Do not modify your files on ocelot until after your assignment has been graded.
Your are to create a webapps folder for
my Tomcat server.
Notify me via email when this is
done, so I can install your host on Tomcat.
You must wait until you receive my response to your email before you can
continue. In the response, you will be given your host name. It will be something
like
studentXX.cgs4825.cs.fiu.edu
-
I will notify you of the two digit number that will replace
the XX.
Create the following directories and files.
-
Create a file named index.html in the ROOT directory of your
webapps folder.
-
Edit the index.html and enter your name and a current email address
in it.
-
Create a subdirectory of ROOT named hw1.
-
In the hw1 directory, create a JSP that has a form.
-
Add three text boxes to the form.
-
Label them with text of your choice.
-
There should be a theme for the text boxes, do not just create random names.
-
Add a submit button to the form. Be sure to name the button with a unique
name.
-
Set the action of the form so that the data is sent to the JSP described
next. Use a relative reference.
-
If there is a query string, then initialize the text elements with the
corresponding values in the query string.
-
In the hw1 directory, create a JSP that has a form.
-
Display the values from the data that was sent from the first JSP. Display
the data as plain text, not by using form elements. Be sure to identify what
each value represents.
-
Add a submit button to the form. Be sure to name the button with a unique
name.
-
Set the action of the form to the first page. Use a relative reference.
-
Arrange to send the data back to the first page. Be sure that the user cannot
edit the data that was sent to this page.
-
Create a hypertext link from the index.html page to the first JSP.
Use a relative reference.
-
Be sure that each page has all the standard tags for a complete HTML page.
-
Set the permissions on all files
so that you have read/write access, the group has no access, and other has
read access.
-
Set the permissions on all directories so that you have read/write/execute
access, the group has no access, and other has read/execute access.
Access your ROOT web app on my Tomcat server. The URL will be something
like
http://studentXX.cgs4825.cs.fiu.edu:8080/
-
Replace XX with the two digit number that will be assigned to you.