Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
192 views
10 pages
MidTermLabTest (2021)
Uploaded by
Salam Abdulla
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save MidTermLabTest(2021) For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
192 views
10 pages
MidTermLabTest (2021)
Uploaded by
Salam Abdulla
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save MidTermLabTest(2021) For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 10
Search
Fullscreen
‘CONFIDENTIAL UT SCHOOL OF COMPUTING MZ SAVE acuity of engineering UNIVERSITI TEKNOLOGI MALAYSIA TEST 1 SEMESTER I 2021/2022 SUBJECT CODE —: SECJ 3303 / SCSJ 3303 SUBJECT NAME —: INTERNET PROGRAMMING YEAR/COURSE _: 2/3 (SECJ) TIME 8.00 pm — 11.00 pm (3 Hours) DATE/ DAY 114 DECEMBER 2021 (TUESDAY) INSTRUCTIONS TO THE STUDENTS: ‘© You are given 3 HOURS to complete the exam inclusive the submission of your answers. © Download the question: 8.00 ~8.15 pm (15 minutes) ‘© Answer the question & Interim submission: 8.15 — 10.45 pm (2 hours 30 minutes) ‘© Final answer submission: 10.45 — 11.00 pm (15 minutes) ‘* A candidate who is suspected of cheating in examinations is liable to disciplinary action including, (but not limited to) suspension or expulsion from the University. All materials and or devices which are found in violation of any examination rules and regulation will be confiscated, IMPORTANT NOTES: ‘+ All the COMMENT STATEMENTS in the submitted program WILL NOT BE EVALUATED. SUBMISSION PROCEDURE: +All file inthe project are required forthe submission and need to be compressed. + The compress fie shall be named as follows: Name_ matriesNo.zip (i.e. Aina Ali_ AI9ECOI8.2p). ‘© Submit the compress file via the UTM’s e-learning system.Questi ion [100 Marks] Preparation: sks: I i i 1- Open NetBeans and create a new Java Web project. 2- Name your project as SchoolStore, 3- From e-learning, download MidTermTest.zip; and unzip the file. 4. Copy the file index.html into Web Pages folder. 5- Copy the file updateProfile.btml into Web Pages folder. 6 Copy the file uniformOrder-html into Web Pages folder nO ie images folder in Web Pages folder. 8- Copy all images containing image files into images folder (Image files are Back to school,jpg, Set By.jpg, Set Girl,jpg and Set Shoes.jps.). 9 Figure 1 below shows the structure of the files in your Netbeans project explorer. Web Pages > 9) WEB-INF Y images [ei Back to schooljpg [es Set Boy.jpg [G) Set Girljpg [\ set shoes.jpg (@) index.hemt {2} uniformOrder. htm! [S)_updateProfile.htmi Figure 1: Structure of the prepared files in Netbeans project explorer. ‘Change the file index.htm! to JSP file and named as index,jsp and do the following tasks. Create a new JSP file and named as header jsp. In header,jsp, display text “Online Shopping Experience with Us. You have accessed this page for
times (since last server reboot)”. Last access from
.” The accessCounter is the counter of the page is being accessed by the use. While accessHost is referring to the remote host of the user Make the header jsp file include in index.jsp as a header of the page as shown in Figure 2.2 Complete the form data validation (use a client-side form validation) in the updateProfile.html and uniformOrder.htm! files to fulfill the specification in Table 1 (you can modify the type of the input fields and use HTMLS validation). Table 1: List of Input Fields and Specification. (Form: wpdateProfile.html INo[Field Name [Specification | iL [Full Name [Mandatory (not allow blank) | [Email Address Optional (allow blank) and use standard email Tormat._| 5 [Gender [Mandatory (not allow blank) | if [Delivery Address [Mandatory (not allow blank), (Form: wniformOrder.htmt INo|Field Name [Specification IL [Quantity [integer value, range between 0 fo 10, 3- Create a servlet (LoginServlet,java) and do the following tasks. i. Check the username and password entered in index,jsp (use a simple check where the valid usemame is “shopper” and the password is “shop 123”). You can input any number for the Phone Number field with the correct format. Refer to the Figure 2, ii, Ifthe login is valid, forward the user to uniformOrder.html, else redisplay the index.jsp with the error message “Invalid username or password. Please try again...” on top of the page and the font colour is red, Refer to the Figure 3 and Figure 4. iii, Write the servlet statements to add the following name value pair (refer Table 2) into session from the input entered in index. jsp. ‘Table 2: List of session names and session values Session name _ [Session value luser_name [shopper loi2-3456789 oF nunber phone_no with the correct format 4. Create a servlet (ProfileServlet java) and do the following task, i. Process the input from the updateProfile.html file and then display the profile information (response page) as shown in Figure 6. The display should include the session values from the index.jsp which are user_name and phone_no. fi, Create and add a cookie that store the delivery address value, entered by the user in updateProfile html. iii, Create “Back to Order” button that should return to uniformOrder. htm! file.ii Create a servlet (ProcessOrder.java) and do the following tasks. Process the customer's order that made through the uniformOrder.html. Refer to the sample outputs (Figure 7 — Figure 9) to test the correctness of your solution (please note that the RM value (price) has 2 (two) decimal points). Write the servlet statements to get the session and display the value of user_name session on top of the page. Then, delete the phone_no session Write the servlet statements to get the cookie and display the value of delivery address cookie on top of the page as shown in sample outputs of Figure 7 to Figure 9. Create “Home” button that should return to index. htm! file. ‘Table 3: Assessment criteria Trem Criteria Marks ‘A_[)___The program is able fo ran and completeness z 7) Using an appropriate structure forthe program = the code is properly indented and readability. 1 = _all the required header files are included. 1 B | Login process and page redirection (LoginServTet java) i) Got the params 3 ii) Login process 9 iit) Session 6 © _| Form data validation (updateProfile hal & uniformOnder himl) i) FullName 0s ii) Email Address Lo ill) Gender 0s iv) Delivery Address os ¥) Quantity 1s D_| Change HTML to JSP (index jsp, create and use header sp) Change index him to JSP file. 1 ii) Button referring tothe new JSP file. 1 iil) Display header file (reate file, content and display). 5 E__| Display profile info (ProfileServletjava) i) Get the parameters 6 ii) Display info 8 iil) Display session values 3 iv) Display button and process 1 ¥)_Create cookie to store delivery address 2 F__| Provess the order (ProcessOrderjava) i) Get the parameters and initialization n ii) Calculation correctness 2 iii) Display the output in table and display the total 1 iv) Display session name and invalidate session phone number 8 ¥y) Display button and process 1 vi) Get and display cookie delivery address 3 Total 100jOpping Experience wi [You have accessed this page for 1 times (since last server reboot), Last access from 127. Welcome to DAEBAK School Uniform Store Username Tom headersp Passware Phone No Eg one Figure 2: The display of index.jsp file and header jsp file.€ > © © rcanesceceoschocsioroginsenv Invalid username or password. Please try again. Welcome to DAEBAK School Uniform Store DAEBAK School Unitorm Store Figure 4: Display of the uniformOrder html for a valid user login.€ > © © lecathost:8080/Schoolstore/updateProtiehim Update Profile Full Name. John Doe Email Address John@gmailcom Gender : ® Male © Female Payment Type : (Online Banking Delivery Address ‘School of Computing, | Faculty of Engineering, Universiti Teknolog Mataysia ‘Shopping interests (you can choose more than one) (Collect comms fReceive [Free delivery pe Figure 5: Display of updateProfile him € > © © tocanost.8080/ScreastreProtieservt Welcome John Doe | sernName@eope > «Display session value of user_name Pontsct NoGiE3456785> ~~ Display session value of phone_no Fait john@gmsicom Pender: Mate povment Type: Onine Banking every Address: Schl of Computing, Facuityof Engineering, Univers Teknologi Malaysia (our shopping interests include: + Receive vouchers + Free delvery Figure 6: The display of response page from ProfileServiet java file.Sample Input #1 Sample Output #1 Figure 7: The display of sample input and output #1Sample Input #2 Sample Output #2 four Order Detail [ser Name: shopper otal Amount To Pay €@ME6.00_> Figure 8: The display of sample input and output #3Sample Input #3 Sample Output #3 four Order Detail Iser Name: shopper Pelivery address: School of Computing, Faculty of Engineering, Universiti Teknologi Malaysia Figure 9: The display of sample input and output #3. -END OF QUESTION:
You might also like
Dotnet Lab
PDF
No ratings yet
Dotnet Lab
19 pages
Task Management System
PDF
No ratings yet
Task Management System
58 pages
Secondary Level School Curriculum: (Technical and Vocational Stream)
PDF
No ratings yet
Secondary Level School Curriculum: (Technical and Vocational Stream)
321 pages
Pizza Hut
PDF
0% (2)
Pizza Hut
54 pages
Final Project
PDF
No ratings yet
Final Project
45 pages
Mad Practical Codes
PDF
No ratings yet
Mad Practical Codes
35 pages
Group Assignment: CT038-3-2-OODJ Object Oriented Development With Java
PDF
No ratings yet
Group Assignment: CT038-3-2-OODJ Object Oriented Development With Java
33 pages
Final Project.......
PDF
33% (6)
Final Project.......
34 pages
My - Calculator Report
PDF
No ratings yet
My - Calculator Report
30 pages
Farm Equipment Rental System:: E-Commerce, Service, Equipment Etc
PDF
100% (1)
Farm Equipment Rental System:: E-Commerce, Service, Equipment Etc
6 pages
Assignment # 2 (Problem)
PDF
No ratings yet
Assignment # 2 (Problem)
2 pages
CPP Project Final 23-24
PDF
No ratings yet
CPP Project Final 23-24
16 pages
Assignment Software Design and Development
PDF
No ratings yet
Assignment Software Design and Development
28 pages
Flower Recog System
PDF
No ratings yet
Flower Recog System
11 pages
Develop Static Pages (Using Only HTML) of An Online Book Store. Should Consist The Following Pages
PDF
No ratings yet
Develop Static Pages (Using Only HTML) of An Online Book Store. Should Consist The Following Pages
96 pages
Student Login
PDF
No ratings yet
Student Login
26 pages
Human Computer Interaction & Usability
PDF
No ratings yet
Human Computer Interaction & Usability
133 pages
Arid Agriculture University, Rawalpindi: Mid Exam / Spring 2021 (Paper Duration 12 Hours) To Be Filled by Teacher
PDF
No ratings yet
Arid Agriculture University, Rawalpindi: Mid Exam / Spring 2021 (Paper Duration 12 Hours) To Be Filled by Teacher
8 pages
OOSAD Assignment - 1
PDF
No ratings yet
OOSAD Assignment - 1
3 pages
Online Society Tracking: A Project Report On
PDF
No ratings yet
Online Society Tracking: A Project Report On
187 pages
Fyp-Proposal 111
PDF
100% (1)
Fyp-Proposal 111
18 pages
Farm Management System
PDF
100% (2)
Farm Management System
195 pages
ECIL
PDF
0% (1)
ECIL
41 pages
CS6004NP - Application Development - Ashish - Bhandari - 17031918 - CW1
PDF
No ratings yet
CS6004NP - Application Development - Ashish - Bhandari - 17031918 - CW1
68 pages
Ts1 ts2
PDF
No ratings yet
Ts1 ts2
61 pages
Database Design - Inventory Management System
PDF
No ratings yet
Database Design - Inventory Management System
6 pages
Online Assignment Plagiarism Checker Project Using Data Mining
PDF
No ratings yet
Online Assignment Plagiarism Checker Project Using Data Mining
5 pages
A Project Report ON "Purchase and Sales Management System"
PDF
No ratings yet
A Project Report ON "Purchase and Sales Management System"
41 pages
CIS6003 Advanced Programming: Student Details (Student Should Fill The Content)
PDF
No ratings yet
CIS6003 Advanced Programming: Student Details (Student Should Fill The Content)
9 pages
Fractional KnapSack Problem
PDF
No ratings yet
Fractional KnapSack Problem
6 pages
A Project Report ON: Medical Store Billing System
PDF
No ratings yet
A Project Report ON: Medical Store Billing System
31 pages
STD Template v1.3 SCSJ2203 SE@UTM ByMG 16may2016
PDF
No ratings yet
STD Template v1.3 SCSJ2203 SE@UTM ByMG 16may2016
9 pages
Assessment Task 3: Project Write-Up: ITECH 7415: Masters Project Group 7 Project Title
PDF
No ratings yet
Assessment Task 3: Project Write-Up: ITECH 7415: Masters Project Group 7 Project Title
75 pages
Sample Resume Format - BE
PDF
No ratings yet
Sample Resume Format - BE
1 page
"Library Management System": A Report ON
PDF
No ratings yet
"Library Management System": A Report ON
41 pages
Stop and Wait Arq Protocol Simulation: An Assignment Project Report On
PDF
No ratings yet
Stop and Wait Arq Protocol Simulation: An Assignment Project Report On
16 pages
ITECH 7410: Software Engineering Methodologies Assignment 2
PDF
No ratings yet
ITECH 7410: Software Engineering Methodologies Assignment 2
11 pages
Birthday Party - Basics of Operators & Basic Programming Practice Problems - HackerEarth
PDF
80% (5)
Birthday Party - Basics of Operators & Basic Programming Practice Problems - HackerEarth
4 pages
Syllabus of MCA - Bridge Course (Mangt) (2020patt.) 2020 - 2022 - 13.05.2021
PDF
No ratings yet
Syllabus of MCA - Bridge Course (Mangt) (2020patt.) 2020 - 2022 - 13.05.2021
13 pages
Green Computing Research Project
PDF
No ratings yet
Green Computing Research Project
4 pages
Minor Project Report For Quiz Application
PDF
No ratings yet
Minor Project Report For Quiz Application
52 pages
Bank Customer Management System C++
PDF
100% (1)
Bank Customer Management System C++
73 pages
A Project Report ON: "Deparmental Storage Management System "
PDF
No ratings yet
A Project Report ON: "Deparmental Storage Management System "
19 pages
Input Output in Java
PDF
No ratings yet
Input Output in Java
4 pages
41 - JAVA - Student Assignment Management System
PDF
No ratings yet
41 - JAVA - Student Assignment Management System
6 pages
#Shuaib OODJ Assignment
PDF
No ratings yet
#Shuaib OODJ Assignment
46 pages
Hard Copy of Faculty Feedback System
PDF
83% (6)
Hard Copy of Faculty Feedback System
16 pages
Petrol Pump Management
PDF
0% (1)
Petrol Pump Management
10 pages
Project
PDF
No ratings yet
Project
27 pages
Project Introduction: Chapter-1
PDF
No ratings yet
Project Introduction: Chapter-1
29 pages
Project Proposal Title of Final Project
PDF
No ratings yet
Project Proposal Title of Final Project
10 pages
Internal Mark Assessment System: Purpose of The Project
PDF
No ratings yet
Internal Mark Assessment System: Purpose of The Project
3 pages
Project Online Mobile Recharge System
PDF
100% (2)
Project Online Mobile Recharge System
10 pages
A Project Report ON Computer Institute Website: Bachelor'S of Science IN Information Technology
PDF
No ratings yet
A Project Report ON Computer Institute Website: Bachelor'S of Science IN Information Technology
90 pages
Original Slides by Daniel Liang Modified Slides by Salam Abdulla
PDF
No ratings yet
Original Slides by Daniel Liang Modified Slides by Salam Abdulla
112 pages
Information Technology Management: Web Based Programming 313
PDF
No ratings yet
Information Technology Management: Web Based Programming 313
55 pages
SECJ3303 202120221 Test1b Unlocked
PDF
No ratings yet
SECJ3303 202120221 Test1b Unlocked
10 pages
Fedal #2
PDF
No ratings yet
Fedal #2
49 pages
Web Technology Lab
PDF
No ratings yet
Web Technology Lab
48 pages
Electronic Shop Management System Report
PDF
No ratings yet
Electronic Shop Management System Report
4 pages
WT Lab Vikas
PDF
No ratings yet
WT Lab Vikas
27 pages
3 Syntax Analysis
PDF
No ratings yet
3 Syntax Analysis
42 pages
2 Regular Expression
PDF
No ratings yet
2 Regular Expression
23 pages
1 Compiler Phases
PDF
No ratings yet
1 Compiler Phases
30 pages
1 Finite Automata
PDF
No ratings yet
1 Finite Automata
62 pages
2 Lexical Analyzer
PDF
No ratings yet
2 Lexical Analyzer
21 pages
Algorithm Techniques Seminar
PDF
No ratings yet
Algorithm Techniques Seminar
11 pages
Neural Network Course
PDF
No ratings yet
Neural Network Course
6 pages