Programming Assignment 3
Web Application Development using NetBeans

Due on Tuesday March 2 before midnight


This project must be done individually. No copying is permitted. The goal of this project is to learn server-side web application development using NetBeans. More specifically, you will develop the same bookstore web application from Project 2 using JavaServer Pages.


You can do this project either on your own PC/laptop or on a UTA PC that has NetBeans (most UTA PCs do). If you want to use your own PC, you would need to install both JDK Java and NetBeans. You will need about 300MB of disk space to download and 800MB more to install.


You can get help by pushing the F1 key in NetBeans. Also Javadocs are very important. If you find a class or method that you don't know you right-click and select Show Javadoc.

The following provide more help. Use them as a reference only.

Project Requirements

You need to re-implement the web application described in Project 2 using Java Server Pages on NetBeans, instead of PHP. You should not use any PHP or JavaScript code. NetBeans provides many tool. You will only use Web application development using Java Server Pages (JSP). Although it was used in the class demo, you should not use Visual Java Server Faces (actually NetBeans 6.8 does not support it any more).

From the NetBeans File menu, select New Project..., then Java Web/Web Application, then Next>, then put project3 for Project Name, then Next>, choose GlassFish V2 for Server, then Next>, check the Java Server Faces box and push Finish. You should get a Palette menu on the right, if not, choose Palette from the Window menu. Basically you drag and drop html/JSP components from the palette to the jsp file. Rename this file to buy.jsp. Finally, push Run the Main Project(F9) and see if it pops out a browser that displays this page.

You need to use a session bean to store your shopping basket (see Developing Web Applications with JSP).

You may use the Java DOM API to access XML data based on DOM. Here is a DOM example. To call a web service, use the class. For example, this calls the ISBN DB and prints the result.

What to Submit

You need to submit your buy.jsp file and your Java files in the Source Packages directory using the following form.

Submit Project #3:

Last modified: 02/25/10 by Leonidas Fegaras