Your First Cup: An Introduction to the Java EE Platform

Creating the firstcup Project

The firstcup web application project consists of the Java Persistence API entity, the enterprise bean, and the JavaServer Faces web front-end.

ProcedureCreate the Web Application Project

Follow these steps to create a new web application project in NetBeans IDE.

  1. Select File -> New Project.

  2. Under Categories select Java Web, then under Projects select Web Application, and click Next.

  3. Set the Project Name to firstcup.

  4. Set the Project Location to tut-install/myexample, where tut-install is the location of the firstcup tutorial installation.

  5. Click Next.

  6. Select your GlassFish Server instance from the Server menu.

  7. Select Java EE 6 from the Java EE Version menu.

  8. Set Context Path to /firstcup and click Next.

  9. Under Frameworks select JavaServer Faces.

  10. Click the Configuration Tab, then under Servlet URL Pattern enter /firstcupWeb/* and click Finish.