cs360 2023 hw2
cs360 2023 hw2
KAIST
CS360
1
Service requirements
• User management
• User registration
• User authentication
• Hint
• Consider ‘SHA1’ SQL function
• Hint
• Consider ‘session.setAttribute’ and ‘session.getAttribute’ JSP function
registration
failed
registration
success
login
success
login
failed
• When the index.jsp page loads, it shows all the schedules the user has added
• On this page, the user can delete or search for only user-added schedules
• This means the user can’t see or delete schedules added by other users
• Users add, delete, and search for schedules using the user id they used to log in
• The user id used to log in is utilized to identify schedules added by the user
• This means that when a user adds a schedule to the database schedule table, the user_id column should
store the user id that the user used to log in.
• Hint
• Consider the ‘$.post’ jQuery function
• Utilize the ‘append_tr()’ JavaScript function in the ‘index.jsp’ to append schedule information on the HTML table
sche_insert.jsp
3. if addition is successful,
add schedule information
clicked to the HTML table using
JavaScript
sche_insert.jsp
clicked
• Hint
• Consider the ‘$.post’ jQuery function
• Consider the ‘change’ jQuery function
sche_select.jsp
Changed
3. Render results
on the html table
Myoung Ho Kim, KAIST
14
Rules
• Due
• 2023. 05. 24. (~23:59) (Do not accept late submission)
• Submission Standard
• You should submit a file named [Student ID].zip which consists of .jsp files only
• Upload the .zip file to the course homepage
• Evaluation
• Do not cheat or plagiarize others. Both will get no points.
• Additional Notices
• You will be given a skeleton code for the assignment
• You can initialize database using db_init.jsp page
• Please test your codes using test_mycode.jsp page