Академический Документы
Профессиональный Документы
Культура Документы
To create efficient websites in minimum time, developers should use the latest Internet technologies. This module will enable students to demonstrate the skills they have acquired in Java technology by providing a solution to the given scenarios.
Objectives
In this project, you will learn to: Design user-friendly interfaces. Establish database connectivity by using a Microsoft SQL Server 2005 database. Implement appropriate business logic in an application to provide the desired functionality.
1.4 Project
NIIT
The interface for the faculty will provide the following features: Answer queries: This feature will enable the faculties to view the queries of students and post answers for the same. Each faculty will be able to view the queries for only those subjects in which they specialize. View course material: This feature will enable the faculties to view the course material for the courses that they teach. Change password: This feature will enable the faculties to change the password for their logon accounts. The interface for the administrators will provide the following features: Course management: This feature will enable an administrator to add course information, such as course name, duration, prerequisites, and fee. Student management: This feature will enable an administrator to add, edit, and block student accounts. Faculty management: This feature will enable an administrator to add, edit, and block faculty accounts. View feedback: This feature will enable an administrator to view the feedback received from students. Search information: This feature will enable an administrator to search for all information related to students or faculties on the basis of their name, course, and study centre. Post Message: This feature will enable an administrator to display notices and messages on the website. Change password: This feature will enable an administrator to change the password for his/her logon account. In order to develop the e-learning site, you need to analyze both the existing and envisioned systems and then create the application accordingly. The new system can be designed by using 3-tier architecture, which consists of following tiers: Presentation tier: This layer consists of Web pages. The pages can be used for accepting the data and displaying the final results to the users. In addition, it can be used to view information according to the requirement of the users. Business logic layer tier: This layer contains the code for providing the logic to create the e-learning site. Data tier: This layer consists of the SQL Server 2005 database, which is used to store the relevant data related to the students, the faculties, and the course material. Create an application to demonstrate the skills you have acquired in Java technology by providing a solution to the given scenario.
NIIT
Project 1.5
The following figure shows the ER diagram for the Fast Learn solution.
Query Text Query ID Posts Query Date of Query Text
Response Text
Student
Enrolls For
Is Resolved By Course
Address
Gives
Feedback
Is Viewed By
Administrator
1.6 Project
NIIT
NIIT
Project 1.7
The system will use banners to display the current promotional schemes. For example, a banner can display a message that indicates a discount on bulk purchase of a particular class of tickets. The system will categorize the movies into action, thriller, comedy, or romance. The system will track the usage patterns of the registered users and display customized pages and banners according to their usage history. For example, users may have searched for a particular category of movies in particular theaters on their first visit. When these users log on again, the system will direct them to the Web page corresponding to the theater and category they searched on their previous visit. The system will ask for and store personal information of the registered users, such as their date of birth and e-mail address. Certain promotional schemes will be based on the personal information, such as offering a free ticket on the users birthday. The website will be used by three different types of users: Customers, Employees, and Administrators. The website will provide a different interface for each type of user. The website interface for the customers will enable them to: View details of the movies that are currently running in all the theaters. View details of the movies that will be running in the next seven days in the various theaters. Register with the website to become a member. Book tickets online after successfully logging on. Provide feedback and suggestions on the various services. Change their password. When a customer attempts to book ticket(s) for a particular show, the system will check the seat availability for that show. If the number of tickets requested by the customer exceeds the number of seats available, the user will be redirected to another page by displaying an appropriate message. In addition, this page will display the details of all the shows in which seats are available for that particular movie. If sufficient number of seats is available, a reference number will be generated for the customer. This reference number should be mentioned by the customer at the time of collecting the tickets at the counter just before the show. The website interface for the employees will enable them to: Enter the details of the tickets sold at the counters to update the booking status. Check the reference number given by the customer. If the reference number is valid, the tickets should be given to the customer. Change their password.
1.8 Project
NIIT
The website interface for the administrators will enable them to: Enter details of movies being shown in the various theaters. Enter details of the new movies that will be shown in these theaters. Update the banners to display the promotional schemes. View the feedback given by the customers. Change their password. The new system will use 3-tier architecture, which will consist of the following components: Presentation tier: This layer will consist of Web pages. The pages can be used for different purposes, such as entering and viewing the details of the various movies, booking tickets online, and providing and viewing feedback. Business logic tier: This layer will contain the code to create the Rainbow Entertainment System. Data tier: This layer will contain the SQL Server 2005 database, which is used to store the relevant data in the form of tables. Create an application to demonstrate the skills you have acquired in Java technology by providing a solution to the given scenario.
NIIT
Project 1.9
The following figure shows the ER diagram for Rainbow Entertainment, Inc.
Name Theater ID Location Date No. of Halls Theater Show ID Start time Customer ID End Time Has Runs Show Address Tickets Booked Phone No.
Name
Hall Capacity
Customer Hall
Hall ID
Movie ID
Movie
Amount Payable
1.10 Project
NIIT
NIIT
Project 1.11
The database will be accessed by three different types of users: customers, nonmembers, and administrator.
The functionalities of the various interfaces are: Nonmembers: This interface will enable the nonmember user to: View the details of all the products. Register with the website to become a member. Search for different types of products based on particular criteria. Customer: This interface will provide all the functionality available for nonmembers. In addition, it will enable members to: Check if an item is available. Add and remove the products from the shopping cart. Purchase products online by using multiple modes of payment. Customize the look and feel of the website. Provide feedback on the various services and product quality. Change their password. Administrator: This interface will enable the administrator to: Upload, edit, and view the details of all the products. Upload, edit, and view the promotional schemes to be displayed on the home page of the website. Upload, edit, and view the discount schemes available for the various products. View the feedback given by the customers. Change his/her password. The e-commerce system will track the usage patterns of the members and display customized pages according to the usage history. For example, users may have searched for a particular category of accessories on their first visit. When these users log on again, the system will direct them to the Web page corresponding to the category they searched during their previous visit. The new system will use 3-tier architecture, which consists of the following components: Presentation tier: This layer will consist of Web pages. The pages can be used for different purposes, such as accepting data and displaying the final results to the users. Business logic tier: This layer will contain the code to provide the logic. Data tier: This layer will contain the SQL Server 2005 database, which is used to store the relevant data related to the products and the customers. Create an application to demonstrate the skills you have acquired in Java technology by providing a solution to the given scenario.
1.12 Project NIIT
Customer
Makes
Payment
Date of Order
Order
Order No. Contains Line No. Appear As Shopping Cart Items No. of Units Line Total No. of Units Order Line Items Line No. Contains
Total Price
Line Total
Appear as
NIIT
Project 1.13
1.14 Project
NIIT
It was agreed that poor customer support was contributing a great deal to the decline in business. Although the technical know-how was there but there was a lack of recording of customer activities and proactive follow up with customers, as well as colleagues. As a result, the management decided to devise a system that could handle customer queries and serve as a part of the companys operations and product value chain, rather than a simple call management system for internal use.
Users: Users are responsible for carrying out call-related activities such as registering new calls, changing the status and priority of existing calls, and interacting with the customers. External users: External users are employees and representatives of the franchisees. These users are primarily responsible for forwarding customer complaints to SureVacs internal users. These users also help in resolution of customer complaints via SureVacs technical staff. The external users can be assigned the following roles: Users: Users are responsible for carrying out call-related activities such as registering new calls and changing the status and priority of existing calls. These users can only view/modify call data that has been created by users of their own franchisee. They cannot view call data created by other franchisees or by SureVac employees. Customers: Customers are individuals or businesses who have bought SureVac products. Customers can register new complaints, view the status of calls already placed, and provide feedback. Customers do not have permissions to perform any other activities. All users will have a username and a password. The usernames of internal users will be their employee codes, and the usernames of external customers will be their franchisee names followed by their employee codes. The customers can choose their username. All users will have the option of retrieving the registered usernames and passwords by providing authenticated information such as their date of birth. Whenever a customer grievance is registered by any user of the system, an email notification is sent to the user to whom the case has been assigned to. Additionally, an email is sent to the customer in case he registered a case himself. A central knowledge base will be created to facilitate knowledge exchange within the SureVac. All the common problems and queries will be assigned a unique code and solutions will be posted against the code. This section will be accessible only to internal and external users.
You need to create such an application by using Java technology. Your application should provide a solution to the given scenario.
1.16 Project
NIIT
NIIT
Project 1.17
1.18 Project
NIIT
In an attempt to unify all its systems, the company proposes to create and use the following components: A central repository that will store all information. An online website that can provide real-time information about the availability of seats and enable users to book movie tickets. This website will connect to the central repository to fetch and store all data. Users who book tickets online will be assigned a unique code. They need to provide this unique code at the theater in order to collect the tickets. This online system should provide a real-time view of the availability and status of tickets. A real-time Web-based interface that can be used for making bookings at the ticket counters. This Web interface will connect to the central repository to fetch and store data. This ticketing system should be able to generate tickets at a considerable rate to cope up with the heavy footfall at the theaters. The central repository will contain all master data, including the data captured during the ticket booking procedure. It should be able to generate seating plans dynamically for each hall. The technical team needs to consider the following facts: Each theater consists of four halls. Each hall has a different seating plan, which needs to be digitally stored in the repository such that: Each seat can be uniquely identified. The complete seating plan can be displayed to assist online users as well as point-of-sales (POS) officers to pick and choose seats during a ticket sale. Booking a seat should mark it as reserved, and it cannot be booked again unless the ticket is cancelled. Seats marked as red in the seating arrangement figure are deemed as booked.
NIIT
Project 1.19
The seats that have not been booked are shown in the grey color. The seats that fall at invalid locations (such as the aisles, or halls with curved seating arrangements) cannot be booked. The following figure shows a sample of the seating arrangement.
Each hall has multiple shows in a day, specified by a show start time and a show end time. There should be a list of snacks in the repository such that users and POS officers can select items when booking a ticket.
The ticketing counter application will be a Web-based interface to be used at the ticket counters at the 15 theaters. This system will be used only by POS officers. It will have the following features: The system will be Internet enabled. It will run as a website developed by using JSP. The POS officers will be able to see the status of each seat for a show and then book or cancel tickets. All POS officers will be given a username and a password. The POS officers should be able to print a ticket by entering the unique code provided by the customers who have booked tickets online. The POS officers will be given the option to log on, log off, and change their password Similar to the ticketing counter application, the online ticket purchase system will be connected to the central repository. The online system will have the following features: Users will be able to select their movie, preferred seats, and the show timing.
1.20 Project
NIIT
Users will be provided with a seating plan for the theater theyve chosen along with a suggested seating pattern based on the availability of seats. Users will be able to select an available seat by clicking the seat shown in the map. Users will be able to select snacks and specify the quantity. After selecting the seats and snacks, users will proceed to the checkout section to pay the total amount by using a credit card. After the payment transaction is complete, users will be provided with a unique code that they need to specify for collecting the tickets at the theater.
NIIT
Project 1.21
Project Execution
This book contains six case studies. One case study will be assigned to each student.
1.22 Project
NIIT
Project Activities
You will get 12 hours to complete the project. During project development, you need to work individually on any one of the allocated projects. The following list provides a suggested break-up of activities that you should perform in the project: Design the user interface of the application to make it user friendly. Create the design for the application by using the following UML diagrams: Use case diagrams Sequence diagrams (any three) Activity diagrams (any three)
NIIT Project 1.23
Integrate the data with the SQL Server 2005 database in the application. Implement business functionality of the system in the application. Submit the documentation to the faculty one day prior to the walkthrough.
Project Timelines
You should ensure that the following tasks are completed within the specified time.
S. No. 1. 2. 3. 4. 5. Task to be Performed Design the UI of the application to make it user friendly. Create the design for the application. Integrate the front end with SQL Server 2005 database. Test and debug the application. Document the project. Total Tasks to be Performed Time Limit 4 hours 4 hours 1 hours 2 hours 1 hours 12 hours
1.24 Project
NIIT
NIIT
Project 1.25
Apply for loan: This feature will enable a customer to apply for a loan. Before applying for a loan, the customer will be able to calculate the EMI for the loan. The feature will also enable the customer to view the status of all previous loan requests. Change password: This feature will enable customers to change their password.
The interface for the employees will provide the following features: Process loan requests: This feature will enable the employees to view loan requests submitted by the customers. It will also enable an employee to either approve or reject a loan request. If the loan is rejected, the employee will be prompted to enter the reason for rejection. Process cheque book requests: This feature will enable the employees to view all requests for cheque books made by customers. It will also enable an employee to specify whether a cheque book has been dispatched or not. Change password: This feature will enable the employees to change their password. The interface for the administrators will provide the following features: Create users: This feature will enable the administrator to create new accounts for users and assign roles to them. For example, after creating a logon account for a customer, the administrator will need to assign the Customer role to that user. The user name and password will be sent to the customer through post. In addition to creating logon accounts for customers, this feature will enable an administrator to create logon accounts for employees and other administrators. Manage users: This feature will enable an administrator to manage users by performing tasks such as assigning roles to users and modifying user information. The administrator will be able to modify information such as address and phone number of the user. In addition, the administrator will be able to activate or deactivate a user logon account. Modify user accounts: This feature will enable the administrator to search for a user name and assign a unique Customer ID to the user name. This Customer ID will be obtained from the database that is maintained by the existing computerized system of the bank. In the existing database, each Customer ID is assigned one or more bank accounts. When a Customer ID is assigned a user name, a person who logs on with this user name will be able to access all bank accounts for that Customer ID. Modify account information: This feature will enable the administrator to modify information such as minimum balance and interest rate for a specific type of account. It will also enable the administrator to add new types of accounts. Modify loan information: This feature will enable the administrator to modify information such as down payment and interest rate for a specific type of loan. It will also enable the administrator to add new types of loans. Update ticker: This feature will enable the administrator to create a news item that will be displayed in the news ticker on the home page. The administrator will also be able to edit the news item and change the status of that news item. The status of a
NIIT Project 1.27
news item can be activated or deactivated. Only activated items will appear in the news ticker. In addition, this feature will enable the administrator to delete a particular ticker. Change password: This feature will enable the administrators to change their password.
The new system will be designed by using 3-tier architecture, which consists of the following tiers: Presentation tier: This layer consists of Web pages. The pages can be used for accepting data and displaying the final results to the users. In addition, they can be used to view data such as statements and account summary. Business logic layer tier: This layer contains the code to create the WestSide Bank system. Data tier: This layer consists of the SQL Server 2005 database, which is used to store the relevant data. Create an application to demonstrate the skills you have acquired in Java technology by providing a solution to the given scenario.
1.28 Project
NIIT
Customer Account
Holds
Customer
Duration
Is Type Of
Makes Request ID Action Taken Request Request Details Request Type Rejection Reason Is Approved
Customer Loan
Status
Date of Approval
Accounts
Account Name
Date of closure
Loan
Account code
Minimum Balance
Performs Employee
Balance
Date of Transaction
NIIT
Project 1.29
1.30 Project
NIIT
3.
Right-click the Databases node and select the Attach option from the pop-up menu. The Attach Databases window appears, as shown in the following figure.
4. 5. 6. 7. 8.
Click the Add button to specify the database to be attached. The Locate Database Files <database instance name> dialog box is displayed. Ensure that the folder containing the .mdf file of the database that you need to attach is expanded in the Locate Database Files <database instance name> dialog box. Select the eBank.mdf file. The name of the selected file appears in the File name text box. Click the OK button to close the Locate Database Files <database instance name> dialog box. Click the OK button to attach the database.
NIIT
Project 1.31
Note
To check the default port number for SQL Server 2005, you need to perform the following steps: 1. Select StartAll ProgramsMicrosoft SQL Server 2005Configuration ToolsSQL Server Configuration Manager. The SQL Server Configuration Manager window appears. 2. Expand the SQL Native Client Configuration node in the leftmost pane and select Client Protocols.
3.
Right-click TCP/IP in the rightmost pane and select Properties. The TCP/IP Properties window appears. Note down the default port number and mention this port number in the getConnection method present in the conn.jsp file of your Java application.
12. Replace the user name and password in the connection string with the user name and password of the SQL server on your machine. 13. Locate the Libraries node in the Project window. 14. Right-click Libraries and select Add JAR/Folder. The Add JAR/Folder window appears. 15. Browse to the C:\Program Files\sqljdbc_1.0\enu folder from the Look in drop-down list box. 16. Select the sqljdbc.jar file and click the Open button. The sqljdbc.jar file gets added to the project.
Note
Every time you build the Java project, all the files required to run the project are copied in a temporary folder. When the build operation is implemented multiple times, multiple versions of the projects get saved in a temporary folder. This consumes a lot of memory space. This problem can be solved by removing all the previous versions of the project before building the project. To remove the previous versions of the project, right-click the eBank node in the Projects window and select Clean Projects. This process removes all the previous versions of the project.
NIIT
Project 1.33
17. Run the project. The home page will be displayed, as shown in the following figure.
The website will be used by three different types of users: Customers, Employees, and Administrators. The website will provide a different interface for each type of user.
Note
Refer the Customers table from the database for the login details of different users.
1.34 Project
NIIT
The Web forms accessible to the employees are: 1. Loan_Process.jsp: Enables an employee to view the details of loan requests placed by the customers 2. EditLoanRequest.jsp: Enables an employee to approve or disapprove loan requests placed by the customers. 3. ViewRequests.jsp: Enables an employee to view all the cheque book requests placed by the customers. 4. EditRequest.jsp: Enables an employee to process the cheque book requests placed by the customers. 5. ChangePasswordEmp.jsp: Enables an employee to change his/her password for security reasons. 6. Default.jsp: Enables an employee to view the home page. 7. MenuUser.jsp: Enables an employee to view various options for performing different transactions online. This page is merged with all the pages accessible to an employee. The Web forms accessible to the customers are: 1. Account_Summary.jsp: Enables a customer to view the details of various types of accounts that he/she holds with the bank. 2. Apply_Loan.jsp: Enables a customer to apply for a loan. 3. Request_Cheque_Book.jsp: Enables a customer to place a request for a cheque book. 4. Transfer_Funds.jsp: Enables a customer to transfer funds from his/her account to another account. 5. Statement.jsp: Enables a customer to view the statement of his/her account ID(s). 6. ChangePasswordUser.jsp: Enables a customer to change his/her password for security reasons. 7. Default.jsp: Enables a customer to view the home page. 8. MenuUser.jsp: Enables a customer to view various options for performing different transactions online. This page is merged with all the pages accessible to the customer. The Web forms accessible to the administrators are: 1. ManageAccounts.jsp: Enables an administrator to view the details of all types of accounts. 2. AddAccount.jsp: Enables an administrator to create a new type of account. 3. EditAccount.jsp: Enables an administrator to edit an existing type of account. 4. ModifyLoan_Rates.jsp: Enables an administrator to view the details of all types of loans.
NIIT Project 1.35
5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19.
AddLoan.jsp:
Enables an administrator to create a new type of loan. EditLoan.jsp: Enables an administrator to edit an existing type of loan. Search.jsp: Enables an administrator to enter the user name of a customer to view its account information. ManageUserAccounts.jsp: Enables an administrator to view the account(s) details of a particular user. EditUserAccount.jsp: Enables an administrator to activate or deactivate the account of the user. AddNewUser.jsp: Enables an administrator to create a new user for an existing customer. ManageUser.jsp: Enables an administrator to view the details of all the users of the website. EditUser.jsp: Enables an administrator to edit the details of the users of the website. NewsTicker.jsp: Enables an administrator to view the details of all the news tickers. AddTicker.jsp: Enables an administrator to create a news ticker. EditTicker.jsp: Enables an administrator to edit the existing news ticker. DeleteTicker.jsp: Enables an administrator to delete an existing news ticker. ChangePassword.jsp: Enables an administrator to change his/her password for security reasons. Default.jsp: Enables an administrator to view the home page. MenuAdmin.jsp: Enables an administrator to view various options for performing different transactions online. This page is merged with all the pages accessible to the administrator.
1.36 Project
NIIT
NIIT
Project 1.37
WestSide Bank
Batch Code Start Date Name of the Coordinator Name of the Developer : B020457 :12th Sep 2007 : Bill Tucker : John Spencer End Date: 31st Sep 2007
1.38 Project
NIIT
CERTIFICATE
This is to certify that this report, titled WestSide Bank, embodies the original work done by John Spencer in partial fulfillment of his course requirement at NIIT.
NIIT
Project 1.39
ACKNOWLEDGEMENT
I have benefited a lot from the feedback and suggestions given to me by Mr. Bill Tucker and other faculty members, and the machine room coordinator.
1.40 Project
NIIT
SYSTEM ANALYSIS
System Summary: The WestSide Bank project involves creating a Web application that will enable its customers to:
View the details of all accounts that they hold with WestSide Bank. View the account statement for all accounts that they hold with WestSide Bank. Apply for loans online. View the status of loan requests. Request for cheque books for any of their accounts. View the status of cheque book requests. Transfer funds from any of their accounts to another account in WestSide Bank.
The Web application will be used by the bank employees to process the requests for loans and cheque books. In addition, the bank application will be used by the administrator to:
Create user IDs for customers, employees, and administrators and assign them their respective roles. Link user IDs created for customers to the respective customer IDs. Upload, edit, and delete news items that will appear on the home page. Upload, edit, and modify the information related to the various types of loans. Upload, edit, and modify the information related to the various types of accounts.
Each type of user should also be able to change and retrieve their password, if required. WestSide bank already has a computerized system in place. It maintains the details of all the customers and accounts. The proposed Web application will use the existing database to obtain the details of customers and accounts. Some additional tables may have to be created in the database to accommodate the specific requirements of the Web application.
NIIT
Project 1.41
Hardware: A node with PIII processor (800 MHz or higher), an SCSI Hard disk of 20GB, 512MB RAM, a CDROM, and one 1-10/100 Mbps network card. Operating system: Windows XP Professional with SP2. Software: JDK 5.0 with NetBeans 5.5.1, SQL Server 2005 Standard Edition, Sun Java Application Server Update 9, and Microsoft SQL Server 2005 JDBC Driver.
1.42 Project
NIIT
John
NIIT
Project 1.43
cust
UI
Bank_DB
5: DisplayMenu() 6: ApplyForLoan() 7: GetLoanRates() Loan Rates 8: EnterLoanDetails() 9: AcceptLoanDetails() 10: CalculateEMI() 11: AcceptLoanRequest() 12: StoreLoanRequest()
1.44 Project
NIIT
Emp
UI
Bank_DB
4: ValidateCredentials()
Validation Status
9: DisplayApplicationDetails()
10: ProcessLoanRequest()
NIIT
Project 1.45
Cust
UI
Bank_DB
1: TransferFunds() 2: GetSourceAccounts() Source Accounts 3: SelectSourceAccount() 4: EnterTargetAccount() 5: AcceptTargetAccount() 6: VerifyTargetAccount() Verification Status 7: EnterAmount() 8: AcceptAmount() 9: CheckBalance() Balance Amount
1.46 Project
NIIT
Login
Enter Amount
NIIT
Project 1.47
Login
[EMI OK=NO]
View EMI
[EMI OK =Yes]
1.48 Project
NIIT
Login
Select an account
NIIT
Project 1.49
Transfer Funds
include include
Account Summary
include include
Change Password
1.50 Project
NIIT
Employee
Change password
NIIT
Project 1.51
Create users
Manage users
include include
include
include Modify account information include Administrator Modify loan information include include
Login
Update ticker
Change password
1.52 Project
NIIT
Name:
Reg. No.:
NIIT
Project 1.53
Project Title
Batch Code Start Date Name of the Coordinator Name of the Developer
: : : : End Date:
Date of Submission :
1.54 Project
NIIT
CERTIFICATE
This is to certify that this report, titled , represents the original work done by _________ in partial fulfillment of his/her course requirement at NIIT.
Coordinator:
NIIT
Project 1.55
ACKNOWLEDGEMENT
1.56 Project
NIIT
SYSTEM ANALYSIS
System Summary:
NIIT
Project 1.57
1.58 Project
NIIT
NIIT
Project 1.59
TECHNOLOGY DIAGRAM
1.60 Project
NIIT
NIIT
Project 1.61
E-R DIAGRAM
Database Name: This E-R diagram represents the relationship among the various entities of the database.
1.62 Project
NIIT
NIIT
Project 1.63
1.64 Project
NIIT
CONFIGURATION
Hardware:
Operating system:
Software:
NIIT
Project 1.65
1.66 Project
NIIT