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.
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 java.net.URL class. For example, this calls the ISBN DB and prints the result.
You need to submit your buy.jsp file and your Java files in the Source Packages directory using the following form.
Last modified: 02/25/10 by Leonidas Fegaras