Your First Cup: An Introduction to the Java EE Platform

ProcedureCreate the Web Application Project

Follow these steps to create a new web application project in NetBeans 6.7 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 Enterprise Server v3 instance from the Server menu.

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


    Note –

    NetBeans 6.7 IDE doesn't currently support Java EE 6 as a Java EE Version, but our application uses Java EE 6 features, and will run on Enterprise Server v3, a Java EE 6 server.


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

  9. Under Frameworks select Java Server Faces.

  10. Under Servlet URL Pattern enter /firstcupWeb/* and click Finish.

  11. Under Web Pages right-click WelcomeJSF.jsp, select Delete, then Yes.