CGS4825 Assignment 4
Section 01: Due Tuesday, 3/1 at 11:59 pm.
Section 02: Due Monday, 2/28 at 11:59 pm.
Create a new web app named hw4.
-
Use the secure web.xml file. Edit it for your user name.
-
Edit the .cshrc file on ocelot, and add a path to the classes
directory of this web app. Then run the command
source ~/.cshrc
-
Once you have created the web app structure, add the web app to your
host using your manager.
-
Add a directory named styles to the root of this web app.
-
Create a style sheet named cgs4825.css in the styles directory
-
Set a color, other than white, for the default background of the page.
-
Set a color, other than black, for the default font color for the page.
-
For b (bold) tags, set the font to a fantasy font. Choose at least
one font that would be in the fantasy family, and have a last choice for
the fantasy font that the browser has chosen.
-
Create a selection tag named larger. Set the size of the font as 20
percent larger than the font size that is inherited from its enclosing tag.
Set the size relatively, not absolutely.
-
Create a selection tag named tiny. Set the size of the font to 6 points.
Set the size absolutely, not relatively.
-
Set a new font color for all the heading tags, and the DT tag.
-
For input tags, set the font to a monospace font. Choose at least
one font that would be in the monospace family, and have a last choice for
the monospace font that the browser has chosen.
-
For textarea tags, set the font so that it is italicized.
-
Modify the index.html file in the ROOT web app
-
Create a link in the ROOT/index.html to the root of this context.
-
Use the style that you created above.
-
Add a page named we-will-spam-you.html to the root of this web app.
-
Include all the tags for a well-defined web page.
-
Include a title.
-
Use the style that you created above.
-
Define your privacy policy.
-
This page is called from the SubmitResume servlet, but was not defined
in the text's example.
-
Add an index.html in the root directory of this web app.
-
Include all the tags for a well-defined web page.
-
Include a title.
-
Use the style that you created above.
-
Include your name.
-
Add a heading to the page.
-
Add a link to SubmitResume.html file.
-
Modify SubmitResume.html as follows
- Change headingFont to a single selection list with five different fonts. Use real fonts, one font from each of the basic font families: serif, sans-serif, monospace, cursive, fantasy.
- Change the headingSize to a radio group with at least three sizes.
- Change the languages to a mulitiple selection list with at least five options
- Add a new element named organizations that is a checkbox group. There should be at least three choices. Select organizations that a student might join at FIU.
-
Copy the SubmitResume.java file into this web app, and modify it as
follows
-
Place your servlet in a package of
your-user-name
-
Your servlet should be accessible from your Tomcat host port 8080 through
the URL
http://studentXX.cgs4825.cs.fiu.edu:8080/hw4/servlet/your-user-name.servlet-name
-
The headingFont and headingSize fields should work exactly
as they did before, without modification.
-
For the languages, you will need to make some modifications.
-
This field can have more than one value.
-
If there are no values, display the italicized string None.
-
If there is one value, display that value.
-
If there is more than one value, display them in an unordered list.
-
For the organizations, you will need to do a similar process for
languages.
-
This field can have more than one value.
-
If there are no values, display the italicized string None.
-
If there is one value, display that value.
-
If there is more than one value, display them in an unordered list.
-
Test your servlet on
-
IE
-
Mozilla or Firefox
-
Test locally using Webclient from the textbook. Create a local web app that
does not require a password to access. Use Webclient to set the headers.
-
Since this is a modification of an existing servlet, and the rest of the
assignment is HTML and CSS, I will not be posting an example of the assignment.
I recommend that you begin by getting the example from the text working as
it is, then add you modifications. Be sure that you place your servlet in
your package, not coreservlets.