2. Understanding Java Platform, Enterprise Edition
3. Creating Your First Java EE Application
4. Creating Your Second Web Application
Creating the Java Persistence API Entity
Create the FirstcupUser Entity Class
Add Properties to the FirstcupUser Entity
Add Constructors to the FirstcupUser Entity
Add a Named Query to the FirstcupUser Entity
Create the DukesBirthdayBean Enterprise Bean Class
Add a Logger Instance to DukesBirthdayBean.java
Add a Business Method to DukesBirthdayBean that Gets the Average Age Difference of firstcup Users
Add a Business Method for Calculating the Age Difference Between Duke and the User
Configuring the Resource Bundle in the Configuration File
Creating the DukesBDay Managed Bean Class
Add an Enterprise Bean Reference
Get the Age Difference from the DukesBirthdayBean Enterprise Bean
Resource Libraries in firstcup
The inputDate Composite Component
Create the inputDate Composite Component
Set the Welcome File in the web.xml Deployment Descriptor
Add the Form to greeting.xhtml
Building, Packaging, Deploying, and Running the firstcup Web Application
Build, Package, and Deploy the firstcup Web Application
The firstcup web application project consists of the Java Persistence API entity, the enterprise bean, and the JavaServer Faces web front-end.
Follow these steps to create a new web application project in NetBeans IDE.
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Legal Notices
Scripting on this page tracks web page traffic, but does not change the content in any way.