Install Apache+php+jsp+mysql under Windows2003
First, PHP
Current version 4.3
1. Will php.ini-dist rem be php.ini,copy to winnt,copy Php4ts.dll to Winnt/system32, no need to copy or change other settings.
2. Php. Ini:
Register_globals = Off--> on
JSP login verification, Web login verification with verification Code checksum, login function to add verification code
Part_1: Class specifically used to generate a CAPTCHA picture: Verificationcode.java
Package cn.mike.javase.test;
Import
JSP login verification, Web login verification with verification Code checksum, login function to add verification code
part_1: class specifically used to generate a CAPTCHA picture: Verificationcode.java
Package cn.mike.javase.test;
Import
1. Train of Thought
Paging data query, while caching the setup progress (percentage of total data for the current fetch point)
2, Interface progress bar for asynchronous request cache ratio
3, Code
Css:
body{
position:relative
}
.
Echarts is used to do a presentation of the data report, here we give you a java/jsp use Echarts to achieve the example of report statistics, the example is very simple just to adjust the data out to Echarts.
Start the code.
First is the tag, this
Analog online examination system, in the request.jsp page output single selection and multiple-choice topics, after the title, click on "Test Completed", the page jumps to requesthandle.jsp, the page to the submitted data processing, and the test
JSP connection oracle8/8i/9i database (in thin mode)
This class is used to load the driver, all of its members are static members, so there is no need to instantiate it in the program and access it directly through the class name.The DriverManager
Obtain the values value of the check box from the JSP page, store the value in the array by defining the array, and display itThe simplest is The code is as follows:Copy code String strLove = "";String [] strLoves = (String []) request.
I. Program description1. Database tutorial: mysql tutorial2. Development environment: tomcat7.0 + windows7 + myeclips tutorial e9.03. Solve the problem: solve the problem of Chinese garbled characters in the jsp tutorial.II. Basic processIII.
1. Log on to the database as a user with DBA permission in Oracle's SQL Plus tool.System/manger @ to_128@ To_128 is the connection string name of the database, which needs to be changed according to the actual situation. If the database is local,
Solutions to garbled data reading in Jsp programs or writing data to DBIn JAVA-based programming, Chinese characters are frequently encountered and displayed, such as a lot of garbled characters or question marks.This is because the default encoding
Example of uploading files to the server using JSP1. An html file is required.Upload.html (content as follows) The code is as follows:Copy code Upload 2. Create a servlet to process the file uploaded from the front-end. The file is put under
The information in the Cookie is stored as a key-value pair, and the Cookie file is stored in ASCII code. Therefore, if you want to store Chinese information, you need to encode it before storing it in the Cookie, decodes data after reading.When a
1. Strong referenceThe references mentioned above in this chapter are actually strong references, which are the most common references. If an object has a strong reference, it is similar to an essential necessities. The garbage collector will never
The code is as follows:Copy code Test Enumeration enu = request. getHeaderNames (); // Get All header informationWhile (enu. hasMoreElements () {// Retrieve the header information in sequenceString headerName = (String) enu. nextElement
Session attribute rangeIn the range of one session, no matter what type of jump can be used, but the new browser will not be able to useSet the session attribute range to session_scope_01.jsp. The code is as follows:Copy code Session.
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.