Error problems in Java Primary development

Source: Internet
Author: User

1. code Example 1

cause of error:? Useunicode=true&characterencoding=utxf8

Error Correction: One of them? It's Chinese.

2. code Example 2

reason for error correction: Database not open

Error Correction: My Computer --"right button--" management--"service and application--" Service---"Find MySQL

3. code example 3

cause of Error Correction: Project start exception Web_xml in Url_pattern the configuration does not have a slash/

Error correction: Add the slash

4. code Example 4

reason for error correction: classpath error src path to Java class and Servlet-class path inconsistency in Web. xml

Error Correction: path consistency

5. code Example 5

reason for error correction: Access Path Errors Inconsistent Url-patern path in access path and Web. xml

Error correction: Two paths remain consistent

6. code example 6

reason for error correction: missing a jstl jar package in 7.0

error Correction: put in In the Lib folder under Tomcat

7. code example 7

Error correction reason: Database connection failed, indicating database connection configuration error,URL configuration error

Error Correction: Change to the correct URL

8. code example 8

Reason for error correction: Data path password or account error

Error correction: Write passwords and accounts correctly

9. code Example 9

Error correction Reason: Data format exception, indicating that the object into the data when the exception, usually appear in In the Integer.parseint (object) method

10. code example 10

Error correction Reason: Garbled problem, garbled problem, when the data is stored in the database is garbled, the processing in the back to the entrance data is garbled, then need to be processed at the top of the coding method request.setcharacterencoding (" UTF-8 "); Note that the servlet adds

Error problems in Java Primary development

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.