When connecting to the database in the JSP some comments:
1. If unable to connect to the database, first check your user name and password if there is any mistake,
2. If your database user name and password for discrepancies, check "Java. Util. */" behind the semicolon, behind the specification is not a semicolon, the import in the page directive attribute specification is not with a semicolon;
3. Due to the database is not used before are code of characters into a byte stream, but with the garbled characters into a byte stream, to the database server, and then turn around will be garbled, is encoded in different Jsp files, such as:
Error: Java. SQL. SQLException: Incorrect string value: '\ xEF \ xBF \ xBD \ xEF \ xBF \ xBD... 'for column' BACK_DATA 'at row 1