I encountered two problems today:
The first question: Apache Chinese garbled problem solution:
Today, I started writing JSP code, but I found that the Chinese characters taken from the Request are garbled, check the information, discovering the problem of apache, need to modify the httpd.conf file under the confedment of the confed, find the AddDefaultcharset ISO-8859-1 this line , Comment out (that is, changed to #adddefaultcharset ISO-8859-1), add a line of addDefaultset off, restart Apache, then take the Chinese characters from the request, display normal.
Second question: Where is the Class file of JavaBean:
Compiled Class files should be placed under / apache directory / htdocs / web-inf / classes.
For example, in the example of learning today, com.wrox.cars.carbean This JavaBean's class file should be placed in / apache directory / htdocs / web-inf / class / COM / WROX / CARS / directory.