Web Development Assignment: Implementing a Bidding System

Verified

Added on  2019/09/26

|21
|958
|347
Practical Assignment
AI Summary
This assignment details the development of a Java-based web application implementing a bidding system. The solution utilizes JSP pages for form design and user interface, along with Servlets for handling user requests and data processing. A MySQL database is employed to store and manage user data, item details, and bidding information. The application incorporates user authentication, allowing both admin and normal user access with different functionalities. Error handling is implemented using try-catch blocks to manage exceptions during database interactions and other operations. The testing strategy involves unit testing, with specific test cases covering login functionality, adding owner and item details, viewing bid items, user registration, and bidding processes. The assignment demonstrates efficient use of Java and other web technologies, providing a comprehensive solution for a bidding system application.
Document Page
Contents
Fit to the design...........................................................................................................................................2
Use of dynamic UML modeling..................................................................................................................2
Correct and efficient use of Java or other OO language..............................................................................2
Good use and appropriate selection of other technologies...........................................................................2
Coding of error handling.............................................................................................................................2
Testing and testing strategy.........................................................................................................................2
Screen Shots................................................................................................................................................2
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Fit to the design
The whole code implementation is done which is based on use case diagram which is provided in
part one document. According to use case diagram admin able to add any owner details and their
items for bidding into database admin can also view all item details with link of their images and
their owner details where admin can see which items are for auction and which are not.
According to use case diagram the normal user able to view his/her personal details, he/she can
also view those items for which he fixes the bidding. The normal user can also able to see the
notification which is a message that is send by the admin to every bid winner. Normal user will
login and then he/she able to see whether he wins or losses by checking his/her notifications and
by checking the notification he/she able to make payment for bid item. If he/she losses then user
will not see the payment option otherwise when she/he won, he/she make payment for that
particular won item.
Document Page
Correct and efficient use of Java or other OO language
I have used JSP page for form design. JSP is also used for user validation when user login using
index.jsp page then user is validate by login.jsp page this page fetch the data from the database
and validate user and determine either he/she is admin or normal user and redirect user
accordingly. I have also used some servlet classes that save the data from the jsp page to
database and after saving the data user is redirected to JSP page directly from this code.
Good use and appropriate selection of other technologies
I have used JSP and SERVLET classes. I have created database in MySql. All tables are created this is
the .sql script where you can see the all create table command.
Document Page
Coding of error handling
All the errors are handled using try catch block. This technique of error handling is called
exception handling.
Here are some code snippets for error handling:
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Document Page
In sql query through any error during its processing then it all handled by the catch block and this
error details are stored in message variable that is later set to session attribute that is “Message”
and the calling jsp page will use this variable to display the error to user.
Connection.java
If there is any error occur during connecting with database then these all errors also handled by
catch block.
Document Page
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Testing
1. Test the login page
Expected Output: alex will logged in successfully and redirected to her panel.
Result: alex user logged in successfully and able to view normal user panel.
Alex is not admin.
Document Page
2. Admin ale to add new owner information to the system
Expectation: New owner details are successfully saved to database
Result: owner details are successfully saved to database.
3. Admin can add multiple items for an owner
Expectation: All items details are saved in database for particular owner.
Result: all details are successfully saved to database.
Document Page
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
4. Admin able to view all bid items list and there will be option to view their owner
information and the image for those items
Expectation: right information will come up for each item
Result: admin able to view all item information
5. Admin can go back to menu and able to add next owner details to database and his/her
item details also.
Expectation: right page will show to admin and admin able to add new owner information to
the system.
Result: no bug error this functionality is done successfully completed by the admin.
Document Page
chevron_up_icon
1 out of 21
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]