Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Java EE 8 Development with Eclipse

You're reading from   Java EE 8 Development with Eclipse Develop, test, and troubleshoot Java Enterprise applications rapidly with Eclipse

Arrow left icon
Product type Paperback
Published in Jun 2018
Publisher
ISBN-13 9781788833776
Length 596 pages
Edition 3rd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Ram Kulkarni Ram Kulkarni
Author Profile Icon Ram Kulkarni
Ram Kulkarni
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

1. Introducing JEE and Eclipse FREE CHAPTER 2. Creating a Simple JEE Web Application 3. Source Control Management in Eclipse 4. Creating JEE Database Applications 5. Unit Testing 6. Debugging the JEE Application 7. Creating JEE Applications with EJB 8. Creating Web Applications with Spring MVC 9. Creating Web Services 10. Asynchronous Programming with JMS 11. Java CPU Profiling and Memory Tracking 12. Microservices 13. Deploying JEE Applications in the Cloud 14. Securing JEE Applications 15. Other Books You May Enjoy

JavaServer Faces


When working with JSP, we saw that it is not a good idea to mix scriptlets with the HTML markup. We solved this problem by using JavaBean. JavaServer Faces takes this design further. In addition to supporting JavaBeans, JSF provides built-in tags for HTML user controls, which are context aware, can perform validation, and can preserve the state between requests. We will now create the login application using JSF:

  1. Create a dynamic web application in Eclipse; let's name it LoginJSFApp. In the last page of the wizard, make sure that you check the Generate web.xml deployment descriptor box.
  2. Download JSF libraries from https://maven.java.net/content/repositories/releases/org/glassfish/javax.faces/2.2.9/javax.faces-2.2.9.jar and copy them to the WEB-INF/lib folder in your project.
  3. JSF follows the MVC pattern. In the MVC pattern, the code to generate user interface (view) is separate from the container of the data (model). The controller acts as the interface between the view and...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime