Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Java EE 5 Development with NetBeans 6
  • Table Of Contents Toc
Java EE 5 Development with NetBeans 6

Java EE 5 Development with NetBeans 6

4 (5)
close
close
Java EE 5 Development with NetBeans 6

Java EE 5 Development with NetBeans 6

4 (5)

Overview of this book

This book is written as a tutorial, leading you through examples to illuminate the main theory and get you working with the Entity Framework as quickly as possible. This book is for C# developers who want an easier way to create their data access layer. You will need to be comfortable with ADO.NET, but you don't need to know anything about the Entity Framework. Along the way we will create some ASP.NET applications, so being familiar with this will also help.
Table of Contents (17 chapters)
close
close
Java EE 5 Development with NetBeans 6
Credits
About the Author
About the Reviewers
Preface
1
Debugging Enterprise Applications with the NetBeans Debugger
2
Identifying Performance Issues with NetBeans Profiler

Servlet Development


Although the application developed in the previous section was fairly easy to develop, the resulting code isn't very maintainable. One of the JSPs has both business logic and presentation logic embedded in it. It is considered a best practice for JSPs to have only presentation logic, and keep the business logic elsewhere.

One common way to approach this problem is to use the Model-View-Controller (MVC) design pattern. This pattern provides a clean separation of concerns, providing artifacts that solely act as data (model), while other artifacts are solely responsible for displaying the data (view) and another artifact (or artifacts) is responsible for manipulating the data and transferring control to the view (controller). In Java web applications, JSPs typically act as the view, servlets act as controllers, and custom JavaBeans act as the model.

In this section we will modify the application we developed previously so that it follows this pattern.

Adding a Servlet to...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Java EE 5 Development with NetBeans 6
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon