Hackathon SBQ 16april
Hackathon SBQ 16april
Problem statement:
A XYZ electronics repair shop is looking for a web application to automate their process. Develop a Web
application using JSP and Servlet which serves this system following below guidelines
Requirements in detail:
Header: Should have a Logo for XYZ electronics repair with a message “online “ on the left . No of Visitors :
<Count> . – on right corner - Have a counter and add it to cookies and display the no of visitors who visited
the page.
Logout – hyper link – on right corner - On clicking it invalidate the session , and redirect to www.google.com.
Footer: Copyright message and a text next to it which should read “designed by ID : Full Name –
CTREFERENCENO” e.g. “Designed by : Raj - 12345” .
Menu: This section would be on the left and have two menu options – Client Request and Process Request
menu options .On clicking the link the screen Client Request and Process Request should be displayed.
Content: ABC Construction and Limited :
Contact Us: XYZ electronics repair LTD, Mayur Vihar, Delhi Ph :01123344 Fax:011131231231 General
enquiry :aec@abc.com
To enhance form appearance, styles can be applied. Direct images , advertisements, articles can be added to
make page attractive.
All web pages need to be consistent in its layout and appearance.
Menu: This section would be on the left and have two menu option – Home and Process Request Page
Content:
Client Request
Client Name < text input, mandatory field,
maximum character 30 >
Address <text area character 100,
mandatory field >
Contact number < text input, mandatory field,
maximum numbers 10 >
email address < text input, mandatory field,
maximum character 30 >
Service requested Drop down Predefined values e.g. Ac Repair,
Refrigerator repair,TV Repair ,laptop
Repair,mobile Repair,mixer Repair
Service details < text input, maximum character
100 >
Date of service <date, mandatory field >
Date of Request Current date
Time slot <time, mandatory field >
Button 'Submit ' and 'Reset' button
Create necessary bean class named as ClientRequest which has the attributes Client Id , ClientName, address ,
contact number, email,service requested,Date of request . The details are collected in the post method of the
servlet and store in a table named as Client . Use necessary DOA class for adding the details to Client table .
ClientId is the primary key , use increment strategy , start from 1000. On inserting the record successfully return
to the same page and display the client details . If form submission is unsuccessful then appropriate error
message has to appear .
Menu: This section would be on the left and have two menu option – Home and Client Request Page
Content:
Process Request Page: Displays a drop down of request status as New, inprogress, completed, onhold. On
selecting any request type all the request based on status will be displayed.
If status is selected as “New” from the dropdown and click on “Process Request” button then display all the
request based on new status as the below grid.
If status is selected as “In Progress” from the dropdown and click on “Process Request” button then all the
request based on in progress status will be displayed as the below grid.
In case the time slot and Date of request cannot be met then set the status to “Onhold” with description”.
If status is selected as “Completed ” from the dropdown and click on “Process Request” button then all the
request based on completed status will be displayed as the below grid.
If status is selected as “onhold ” from the dropdown and click on “Process Request” button then all the request
based on onhold status will be displayed as the below grid.
Click “Update” link to update the status as Inprogress.
Click “Delete” link to delete the request.
If any issues during update /delete actions then appropriate error message has to displayed using error page
directive .