CGS4825 Assignment 1

Due Friday, 1/25 at 11:59 pm.

Create a NetBeans project

  1. Create a NetBeans project that is a web application. You may use NetBeans in the JCCL or you may download and install NetBeans on your personal computer.
  2. Be sure that you create and edit files from the Projects tab. If you make changes to a file from the Files tab, the changes will be destroyed the next time you build the project.
  3. Place the files for this assignment in the Web Pages folder of the project.

Create an HTML page

  1. Write a complete HTML page, named index.html. Place the page in the Web Pages folder of your NetBeans project.
  2. The page should contain a paragraph that describes a personal interest or hobby.
  3. The page should include a short poem. Each line of the poem should be on a separate line of the page. When the page is displayed, there should not be any blank lines between the lines of the poem.
  4. Create a hypertext link to the page named first.jsp, which is described below. Use a relative link.
  5. Validate the page at w3.org.

Create a JSP

  1. Rename the index.jsp file in the Web Pages folder of your NetBeans project to first.jsp.
  2. The page should include a form with two text boxes and a submit button.
  3. When the submit button is clicked, display the values that were entered into the text boxes. Display them as bold text in the page. Also, initialize the text boxes with the values that were just submitted.
  4. Create a hypertext link to the index.html page. Use a relative link.
  5. Validate the page.

Run the Project

  1. Run the project. Your web browser will open and the index.html page will be displayed. Be sure that you have renamed index.jsp to first.jsp, or you will not see your index.html page.
  2. Test that you can follow the hypertext links that you created.
  3. Test that your JSP will display the values that you submit.

Upload the WAR file of the project

  1. When you build the project, a WAR file is created. WAR is short for Web Archive. It is a zip file of your web application. The WAR file contains the directory structure of a web application. Every time you build your project in NetBeans, all the files from the project are copied to the correct directories in the web application structure.
  2. The WAR file is located in the dist subfolder of your project. Navigate to your project folder by using My Computer or Windows Explorer.
  3. Upload the WAR file online, using the link from the class page. I will be sending a password for you to use. I will send the password to your FIU email account. You will have the password by 1/18 at midnight.
  4. You must upload the WAR file by 1/25 at 11:59 pm.