J2EE 1.7 Projects: Black book (Record no. 2446)
[ view plain ]
000 -LEADER | |
---|---|
fixed length control field | 49077nam a22002177a 4500 |
003 - CONTROL NUMBER IDENTIFIER | |
control field | OSt |
005 - DATE AND TIME OF LATEST TRANSACTION | |
control field | 20200219121811.0 |
008 - FIXED-LENGTH DATA ELEMENTS--GENERAL INFORMATION | |
fixed length control field | 200117b ||||| |||| 00| 0 eng d |
020 ## - INTERNATIONAL STANDARD BOOK NUMBER | |
International Standard Book Number | 978-93-5119-876-5 |
028 ## - PUBLISHER NUMBER | |
Source | Allied Informatics, Jaipur |
Bill Number | 7084 |
Bill Date | 13/01/2020 |
Purchase Year | 2019-20 |
040 ## - CATALOGING SOURCE | |
Original cataloging agency | BSDU |
Language of cataloging | English |
Transcribing agency | BSDU |
082 ## - DEWEY DECIMAL CLASSIFICATION NUMBER | |
Classification number | 005.133 |
Item number | DTE |
100 ## - MAIN ENTRY--PERSONAL NAME | |
Personal name | DT Editorial Services |
245 ## - TITLE STATEMENT | |
Title | J2EE 1.7 Projects: Black book |
260 ## - PUBLICATION, DISTRIBUTION, ETC. | |
Place of publication, distribution, etc. | New Delhi |
Name of publisher, distributor, etc. | Dreamtech Press |
Date of publication, distribution, etc. | 2016 |
300 ## - PHYSICAL DESCRIPTION | |
Extent | 588 |
500 ## - GENERAL NOTE | |
General note | Ever wondered why all software project books are complex and tedious to understand! In fact, they should be fast and fun to comprehend. One book that stands out for following this thought consistently is the J2EE 1.7 Projects book. The projects in this book abide by two concepts—first, to help engineer the best software product that follows all phases of Software Development Life Cycle, including analysis, software design, testing and implementation; and second, to efficiently use the features, tools, and technologies provided by the platform for the project |
504 ## - BIBLIOGRAPHY, ETC. NOTE | |
Bibliography, etc. note | Contents INTRODUCTION ................................................................................................................ xiii CHAPTER 1: INTRODUCING JAVA EE ...................................................................................... 1 Need for Enterprise Programming ................................................................................................................ 4 Enterprise Architecture Layers ...................................................................................................................... 5 Exploring Enterprise Architecture Types ....................................................................................................... 6 The Single-Tier Architecture ............................................................................................................................... 6 The 2-Tier Architecture ...................................................................................................................................... 6 The 3-Tier Architecture ...................................................................................................................................... 8 The n-Tier Architecture ...................................................................................................................................... 9 Objectives of Enterprise Applications ......................................................................................................... 11 Introducing the Java EE 7 Platform ............................................................................................................. 13 Features of the Java EE Platform ................................................................................................................. 14 Platform Independence .................................................................................................................................... 14 Managed Objects ............................................................................................................................................. 14 Reusability ........................................................................................................................................................ 14 Modularity ........................................................................................................................................................ 15 Easier Development .......................................................................................................................................... 15 Simplified EJB ................................................................................................................................................... 15 Enhanced Web Services ................................................................................................................................... 15 Support for Web 2.0 ......................................................................................................................................... 15 New Features of Java EE 7 Platform ............................................................................................................ 15 Exploring the Java EE 7 Platform ................................................................................................................ 16 The Runtime Infrastructure ............................................................................................................................... 16 The Java EE 7 APIs ............................................................................................................................................ 17 Exploring the Architecture of Java EE 7 ....................................................................................................... 21 Describing Java EE 7 Containers ................................................................................................................ 22 Container Types ............................................................................................................................................... 23 Java EE 7 Container Architecture ....................................................................................................................... 23 Developing Java EE 7 Applications............................................................................................................. 26 Probable Java EE Application Architectures ....................................................................................................... 27 Application Development and Deployment Roles ............................................................................................. 29 Application Development Process ..................................................................................................................... 30 Listing the Compatible Products for the Java EE Platform ........................................................................... 32 Introducing the Servers for Java EE Applications ......................................................................................... 33 Introducing Web Servers .................................................................................................................................. 34 Introducing Application Servers ......................................................................................................................... 34 Technologies used in Projects Development .............................................................................................. 35 Servlets ............................................................................................................................................................. 35 iv J2EE 1.7 PROJECTS JSP .................................................................................................................................................................... 37 Struts Framework .............................................................................................................................................. 38 Java Server Faces .............................................................................................................................................. 41 The Spring Framework ..................................................................................................................................... 42 PROJECT I: CHAT APPLICATION CHAPTER 1: CASE STUDY: CHAT APPLICATION ...................................................................... 47 SDLC of the Project .................................................................................................................................. 50 Requirement Analysis ....................................................................................................................................... 50 Software Design ............................................................................................................................................... 50 Development.................................................................................................................................................... 51 Testing .............................................................................................................................................................. 52 Implementation and Maintenance ..................................................................................................................... 52 CHAPTER 2: CREATING HOME PAGE ..................................................................................... 53 Creating MainChatServlet Servlet ........................................................................................................ 56 MainChatServlet.java .............................................................................................................................. 56 Mapping of Servlet in web.xml ........................................................................................................................ 59 Designing Home Page ............................................................................................................................... 60 Running the Application ............................................................................................................................ 62 CHAPTER 3: LOGIN MODULE............................................................................................... 65 Creating Login User Interfaces ................................................................................................................... 67 Creating login.jsp ....................................................................................................................................... 67 Creating loginhandler.jsp ......................................................................................................................... 70 Creating loginfail.jsp ............................................................................................................................... 73 Creating logout.jsp ..................................................................................................................................... 74 CHAPTER 4: ADMIN MODULE .............................................................................................. 75 Adding New Users ................................................................................................................................... 77 Creating adduser.jsp ................................................................................................................................... 78 Creating adduserhandler.jsp .................................................................................................................... 79 Viewing Users .......................................................................................................................................... 80 Deleting Users .......................................................................................................................................... 83 Configuring ChatRooms .............................................................................................................................. 84 CHAPTER 5: USER MODULE ................................................................................................. 89 Selecting Chat Room ............................................................................................................................... 91 Implementing Chatting Process .................................................................................................................. 95 doGet() Method ............................................................................................................................................ 99 doPost() Method ........................................................................................................................................ 100 getProfileName() Method ........................................................................................................................ 101 getRoom() Method ...................................................................................................................................... 101 TABLE OF CONTENTS v messageFrame() Method ............................................................................................................................ 102 writeMessage() Method ............................................................................................................................ 103 Creating ChatRoomEntry Class .................................................................................................................. 104 PROJECT II: PEOPLE MANAGEMENT CHAPTER 1: CASE STUDY: PEOPLE MANAGEMENT ............................................................... 109 Software Requirements .............................................................................................................................111 SDLC of the Project .................................................................................................................................111 Requirement Analysis ..................................................................................................................................... 112 Software Design ............................................................................................................................................. 112 Database Design ............................................................................................................................................ 113 Development.................................................................................................................................................. 117 Testing ............................................................................................................................................................ 118 Implementation and Maintenance ................................................................................................................... 118 Summary .................................................................................................................................................118 CHAPTER 2: CASE STUDY: CREATING LOGIN MODULE ........................................................ 119 Designing Login User Interface .................................................................................................................121 Creating the people_user_login Servlet ................................................................................................... 123 Creating the UserLoginDBObj Class ............................................................................................................ 126 Creating the UserLoginDBMethods Class .................................................................................................... 127 Creating the people_default.jsp File ...................................................................................................... 129 Directory Structure of the Project ..............................................................................................................133 Login and Navigating to Home Page .........................................................................................................134 Changing Password .................................................................................................................................136 CHAPTER 3: CASE STUDY: CREATING PROFILE MANAGEMENT MODULE ................................ 139 Implementing Logic with Servlet ...............................................................................................................141 Creating the people_employee Servlet ........................................................................................................ 142 Creating the EmployeeDBObj Class .............................................................................................................. 146 Creating the EmployeeDBMethods Class ...................................................................................................... 147 Creating the GenerateId Class ..................................................................................................................... 150 Creating Views ........................................................................................................................................151 Creating the employee_insert JSP Page ..................................................................................................... 151 Creating the employee_search JSP Page ..................................................................................................... 156 Creating the employee_edit JSP Page ......................................................................................................... 158 Creating the employee_list JSP Page ......................................................................................................... 162 Creating the employee_profile JSP Page................................................................................................... 164 CHAPTER 4: CASE STUDY: CREATING RECRUITMENT MODULE .............................................. 169 Creating the people_applicant Servlet ..................................................................................................... 172 Creating the ApplicantDBObj Class ............................................................................................................ 176 Creating the ApplicantDBMethods Class .................................................................................................... 176 Creating the GenerateId Class ..................................................................................................................... 183 vi J2EE 1.7 PROJECTS Creating an Interface for Applicant Registration ............................................................................................... 184 Creating the applicant_test_dtl Servlet ................................................................................................. 196 Designing JSP Views ....................................................................................................................................... 202 Working of the Recruitment Module ............................................................................................................... 214 CHAPTER 5: CASE STUDY: CREATING ATTENDANCE MANAGEMENT MODULE ......................... 217 Creating the time_management Servlet .................................................................................................219 Creating JSP Views ...................................................................................................................................230 Creating the employee_daily_attendance JSP Page ............................................................................... 230 Creating the employee_daily_attendance_summary JSP Page .............................................................. 233 CHAPTER 6: CASE STUDY: CREATING LEAVE MANAGEMENT MODULE ................................... 237 Creating the leave_management Servlet ..............................................................................................239 Creating the LeaveRequest Class ............................................................................................................... 245 Creating the LeaveMgmtBeanMethods Class ............................................................................................... 246 Creating the GenerateId Class ..................................................................................................................... 251 Designing JSP Views ................................................................................................................................251 Creating the leave_request JSP Page ......................................................................................................... 252 Creating the leave_request_edit JSP Page ............................................................................................. 256 Creating the leave_request_reject JSP Page .......................................................................................... 260 Creating the leave_request_list JSP Page ........................................................................................ 263 CHAPTER 7: CASE STUDY: CREATING PAYROLL MODULE ..................................................... 267 Updating Salary Statement ........................................................................................................................269 Creating people_payroll Servlet .........................................................................................................270 Creating the EmpSal Class .............................................................................................................................. 277 Creating the EmployeeAgreement Class ...................................................................................................... 278 Creating the PayrollBeanMethods Class .................................................................................................... 278 Designing JSP Views ................................................................................................................................286 Creating the employee_agreement JSP Page .............................................................................................. 286 Creating the employee_agreement_edit JSP Page ................................................................................... 291 Creating the salary_search.jsp File ........................................................................................................ 293 Creating the salary_slip JSP Page .............................................................................................................. 294 PROJECT III: ONLINE SHOPPING SITE CHAPTER 1: CASE STUDY: MYSHOPPINGSITE ....................................................................... 301 SDLC of the Project .................................................................................................................................304 Requirement Analysis ..................................................................................................................................... 304 Client-Side Requirements ............................................................................................................................... 304 Customer-Side Requirements.......................................................................................................................... 304 Software Design ............................................................................................................................................. 304 Database Design ............................................................................................................................................ 307 Development.................................................................................................................................................. 308 TABLE OF CONTENTS vii Testing ............................................................................................................................................................ 308 Implementation and Maintenance ................................................................................................................... 308 CHAPTER 2: CREATING HOME PAGE ................................................................................... 309 The Directory Structure .............................................................................................................................311 web.xml ........................................................................................................................................................ 312 The struts-config.xml File ..................................................................................................................... 314 Creation of Home Page .............................................................................................................................316 CHAPTER 3: CREATING LOGIN INTERFACE ........................................................................... 321 Creating the LoginForm Class .................................................................................................................323 The reset() Method .................................................................................................................................... 325 The validate() Method .............................................................................................................................. 325 Creating the LoginAction Class ............................................................................................................325 The getUser() Method ............................................................................................................................... 325 The execute() Method ............................................................................................................................... 326 Creating the login.jsp File ...................................................................................................................329 MessageResources and ApplicationResources.properties ................................................................................ 330 Updating the struts-config.xml File ................................................................................................331 Creating the CategoryListAction Class .............................................................................................333 Creating the categoryList.jsp File ....................................................................................................335 Working of Module .................................................................................................................................337 CHAPTER 4: MANIPULATING CATEGORY ............................................................................. 339 Adding Category ......................................................................................................................................341 Creating the addCategory.jsp File ............................................................................................................ 341 Creating CategoryForm ............................................................................................................................... 343 Creating AddCategoryAction ..................................................................................................................... 344 insertCategory() Method ........................................................................................................................ 344 Execute() Method ...................................................................................................................................... 344 Adding New Action and Form Bean Mapping ................................................................................................. 346 Updating Category ...................................................................................................................................347 GetCategoryAction Class .......................................................................................................................... 347 editCategory.jsp .................................................................................................................................... 350 EditCategoryAction Class........................................................................................................................ 351 Deleting Category ....................................................................................................................................353 DeleteCategoryAction Class ................................................................................................................... 354 CHAPTER 5: HANDLING OF PRODUCT DETAILS ................................................................... 357 Showing Product List ...............................................................................................................................359 ProductListAction Class .......................................................................................................................... 360 productList.jsp ...................................................................................................................................... 364 Adding Product .......................................................................................................................................366 viii J2EE 1.7 PROJECTS Creating addProduct.jsp ........................................................................................................................... 367 Creating ProductForm ................................................................................................................................. 369 Creating AddProductAction Class .............................................................................................................. 371 Editing Product ........................................................................................................................................374 GetProductAction Class ............................................................................................................................ 375 editProduct.jsp ...................................................................................................................................... 378 EditProductAction Class .......................................................................................................................... 380 Deleting Product......................................................................................................................................382 DeleteProductAction Class ..................................................................................................................... 382 CHAPTER 6: SEARCHING AND SHOPPING-CART HANDLING ................................................ 385 Searching Product ....................................................................................................................................387 Search by Category ......................................................................................................................................... 388 Search by Keyword ......................................................................................................................................... 391 SearchForm Class ........................................................................................................................................ 393 ProductSearchByKeywordAction Class .................................................................................................. 393 olns_product_search_result.jsp ...................................................................................................... 396 Shopping Using Shopping-Cart .................................................................................................................399 olns_product_dtl.jsp ............................................................................................................................ 400 AddItem2CartAction Class........................................................................................................................ 402 olns_shopping_cart_dtl.jsp ............................................................................................................... 407 ShoppingItemForm Class ............................................................................................................................ 410 olns_order_delivery_dtl.jsp ............................................................................................................. 412 OrderForm Class .......................................................................................................................................... 414 InsertOrderAction Class .......................................................................................................................... 416 olns_prod_order_dtl.jsp ...................................................................................................................... 422 PROJECT IV: BANKING INFORMATION SYSTEM CHAPTER 1: CASE STUDY: BANKING INFORMATION SYSTEM ................................................. 427 SDLC of the Project .................................................................................................................................430 Requirement Analysis ..................................................................................................................................... 430 Software Design ............................................................................................................................................. 430 Database Design ............................................................................................................................................ 431 Development of the Project ............................................................................................................................. 433 Testing ............................................................................................................................................................ 434 Implementation and Maintenance ................................................................................................................... 434 CHAPTER 2: HIBERNATE MODULES ..................................................................................... 435 Hibernate—A Brief Discussion .................................................................................................................437 Overview of Hibernate Architecture .........................................................................................................437 Components in Hibernate Module ............................................................................................................439 Persistence Class ............................................................................................................................................ 439 Mapping File .................................................................................................................................................. 439 TABLE OF CONTENTS ix Login—Our First Hibernate Module ..........................................................................................................439 Creating the Login Class ............................................................................................................................... 440 Creating Mapping File .................................................................................................................................... 441 The AccountHolder Hibernate Module .....................................................................................................441 The AccountHolder.java File ................................................................................................................... 441 Creating AccountHolder.hbm.xml File ..................................................................................................... 445 The Savings Hibernate Module .................................................................................................................446 The Savings.java File ............................................................................................................................... 446 Creating the Savings.hbm.xml File ............................................................................................................ 447 Recurring Hibernate Module ....................................................................................................................448 The Recurring.java File ............................................................................................................................ 448 Creating the Recurring.hbm.xml File ........................................................................................................ 450 The Current Hibernate Module .................................................................................................................450 The Current.java File ............................................................................................................................... 450 Creating the Current.hbm.xml File ............................................................................................................ 451 The Transaction Hibernate Module ...........................................................................................................452 The Transaction.java File ....................................................................................................................... 452 Creating the Transacton.hbm.xml File ...................................................................................................... 454 Configuring Hibernate ..............................................................................................................................454 The Hibernate configuration File ........................................................................................................ 455 Creating a Hibernate Session ....................................................................................................................457 The HibernateUtil Module ....................................................................................................................... 457 CHAPTER 3: JSF AND SPRING MODULES ............................................................................. 459 JSF—A Brief Discussion ............................................................................................................................461 Role of JSF in an Enterprise Application........................................................................................................... 461 Overview of JSF Architecture.......................................................................................................................... 462 Lifecycle of JSF Page ....................................................................................................................................... 464 Components of a JSF Application .................................................................................................................... 464 Exploring JSF Tag Libraries ........................................................................................................................465 The HTML Tag Library ................................................................................................................................... 465 Exploring the Core Tag Library ........................................................................................................................ 469 Creating a JSF Page ..................................................................................................................................471 JSP .................................................................................................................................................................. 471 Facelets .......................................................................................................................................................... 471 Creating Master.xhtml ............................................................................................................................... 472 Creating the index.xhtml File ..................................................................................................................... 474 Spring—A Brief Discussion .......................................................................................................................475 Login Process ................................................................................................................................................. 475 JSF Module ..................................................................................................................................................... 475 Spring Module ................................................................................................................................................ 479 x J2EE 1.7 PROJECTS CHAPTER 4: BANK MASTER MODULES ................................................................................ 483 Managing Customer Account ....................................................................................................................485 Opening a New Account ..........................................................................................................................486 JSF Module for Opening a New Account ......................................................................................................... 486 Spring Module for Opening a New Account ................................................................................................... 494 JSF Module for Savings Account ...................................................................................................................... 498 Spring Module for Savings Account ................................................................................................................. 500 JSF Module for Current Account ...................................................................................................................... 503 Spring Module for Current Account ................................................................................................................. 505 JSF Module for Recurring Account ................................................................................................................... 507 Spring Module for Recurring Account ............................................................................................................. 511 Modifying an Account ..............................................................................................................................513 JSF Module for Modifying an Account ............................................................................................................. 513 Spring Module for Modifying an Account ........................................................................................................ 522 Viewing an Account ................................................................................................................................526 JSF Module for Viewing an Account ................................................................................................................ 526 Spring Module for Viewing an Account ........................................................................................................... 535 CHAPTER 5: TRANSACTION AND REPORT MODULES ............................................................ 537 Transactions ............................................................................................................................................539 Withdrawing Money ................................................................................................................................540 JSF Module for Withdrawing Money................................................................................................................ 540 Spring Module for Withdrawing Money .......................................................................................................... 545 Depositing Money ...................................................................................................................................549 JSF Module for Depositing Money ................................................................................................................... 549 Spring Module for Depositing Money .............................................................................................................. 552 Transferring Money ..................................................................................................................................552 JSF Module for Transferring Money ................................................................................................................. 552 Spring Module for Transferring Money ............................................................................................................ 557 Reports ....................................................................................................................................................557 Daily Report ................................................................................................................................................... 557 Monthly Report .............................................................................................................................................. 563 Spring Module for Monthly Report .................................................................................................................. 565 CHAPTER 6: CONFIGURATION AND DEPLOYMENTS ............................................................. 569 Hibernate Reverse Engineering .................................................................................................................571 The hibernate.reveng.xml File ............................................................................................................... 571 Application Configuration .........................................................................................................................572 The applicationContext.xml File .......................................................................................................... 572 Spring Configuration ................................................................................................................................572 Dispatcher Servlet Configuration...............................................................................................................573 The web.xml Configuration ....................................................................................................................574 Deploying and Running the Application ...................................................................................................576 TABLE OF CONTENTS xi PROJECT V: BUG TRACKING SYSTEM CHAPTER 1: CASE STUDY: BUG TRACKING SYSTEM .............................................................. 579 SDLC of the Project .................................................................................................................................582 Requirement Analysis ..................................................................................................................................... 582 Software Design ............................................................................................................................................. 583 Development.................................................................................................................................................. 585 Testing ............................................................................................................................................................ 586 Implementation and Maintenance ................................................................................................................... 587 ONLINE RESOURCE .......................................................................................................... 589 |
650 ## - SUBJECT ADDED ENTRY--TOPICAL TERM | |
Topical term or geographic name entry element | Java |
942 ## - ADDED ENTRY ELEMENTS (KOHA) | |
Source of classification or shelving scheme | |
Koha item type | Books |
Withdrawn status | Lost status | Source of classification or shelving scheme | Damaged status | Not for loan | Permanent Location | Current Location | Shelving location | Date acquired | Cost, normal purchase price | Total Checkouts | Full call number | Barcode | Date last seen | Date last checked out | Cost, replacement price | Price effective from | Koha item type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
BSDU Knowledge Resource Center, Jaipur | BSDU Knowledge Resource Center, Jaipur | General Stacks | 2020-01-17 | 449.00 | 2 | 005.133 DTE | 018000 | 2023-10-13 | 2023-10-10 | 449.00 | 2020-01-17 | Books |