Common stuff jsp.:
admin_control.jsp
We will create a loginUser first, then get the value from "loginUser" and pass the value to the loginUser.
And based on loginUser to find his usertype, then put into String usertype.
authenticate.jsp
When user enter values in both username and password. The value will be retrieved to display related data.
If login successfully, it will display all the information about the user.
Else, if login unsuccessfully, end.
config.jsp
We will use this URL to run the whole functions.
And default OTP is 123456.
header.jsp
If loginUser is not equal to null, it will display information of the user.
There is a function called "showErrorModal", it will display errorMessage.
home.jsp
It is to ensure reference data loaded before UI
It is to ensure functions are executed sequentially.
There are 4 functions:
index.jsp
It is to remove the event listeners when the dislog is dismissed,
and remove the actual elements from the DOM when fully hidden.
logout.jsp
Remove a session by using session removeAttribute.
And redirect to index.jsp
protect.jsp
It default to client developer.
If loginUser is not equal to null, it will update type of usertype if user is logged in as another role (Admin or Client Developer)
Else, it will print the information below.
sidebar.jsp
The function of sidebar.jsp is to add the features on the web page for user to click and select different function.
1. JSP
3. ontimeout
4. setOTP
5. xmlHttp
6. showOTPModel
9. ApiURL
GlobalErrorID
"010000": No errors.
"010041": OTP has expired.
"010xxx": Other errors.
Created with the Personal Edition of HelpNDoc: Easily create iPhone documentation