Development Environment configuration ------------------------------------------------------------------------- 1 Floor IDE eclipse installation --------------------------------------------------------------------- 2 Floor Second jsp file -------------------------------------------------------------------------- 7/F Get/Post method ----------------------------------------------------------------------- 10th floor Implement file upload in JSP --------------------------------------------------------------- 13 floor Implement File Upload 2 in JSP (Eclipse is easy to use) -------------------------------- 14 floor Summary of jsp page uploaded version ----------------------------------------------------------- 15th floor Application, session variable ----------------------------------------------------------- 16 floor Request, response object introduction ------------------------------------------------------- 17 floor Download files through the response object ------------------------------------------------------ 18 floor Cookie operation example. Download files in JSP ------------------------------------------------------------------- 19 floor Database Connection ---------------------------------------------------------------------------- 20 floor Connection Pool concept and simple implementation ---------------------------------------------------------- 22nd floor Start from the simplest message book-1------------------------------------------------------------26 floor |
-Development Environment Configuration
My department is engaged in erp development of VB + Oralce. I have forgotten about Java. Recently, my project in this department is not very tight and I am going to write something, in Windows, java web development starts from environment configuration and starts. I hope it will be helpful to you.
Many people do java web development in the windows operating system. The first step of development is to configure the development environment. The Java development environment is basically the Java Virtual Machine and web server. Of course, the database server environment is also an important part. However, there are many databases used during development, such as Oracle, MySQL, SQLServer, Access, and so on. For web developers, as long as the database service exists, the basic information (url, username, password, driverClass) of the database link is provided ), the JDBC driver package provided by JDK or a third party can be easily linked to the database. Therefore, the java web development environment is mainly used for java virtual machines and web servers. In the development process, many developers prefer to use tomcat as the web server, so let's briefly talk about the installation and configuration of JDK and TOMCAT.
The IDE used for development can only use Eclipse, which is often used as an example.
JDK installation and version selection.
JDK has many versions, such as J2SE 1.3.1, 1.4.2, 1.5, and 1.6... To download the JDK Installation File, go to the sun website.
For example, the download page for JDK1.6 is now http://java.sun.com/javase/downloads/index.jsp
And the previous version of the download page for http://java.sun.com/javase/downloads/previous.jsp
Select JDK 1.4.2.
Note:
During development, if you decide the JDK version, you can download the corresponding version as you like. Pay attention to the JDK version requirements of the selected web server. If the project meets the same requirements or you have already developed a project, use the JDK of the specified version. After all, there may be some differences in the structure of classes and packages in different JDK versions.
Here, select JDK 1.4.2.
On the download page (http://java.sun.com/j2se/1.4.2/download.html), you can see the download of JDK, JRE and JDK documentation. JRE provides a Java Runtime Environment for the operating system, such as running the Applet program in IE. The developer must use JDK. After JDK is installed, it comes with JRE.
PS> we recommend that you download the JDK installation file along with the JDK document. This is the best helper in the development process. You can find the types, methods, and parameters, and basic information such as exceptions that may be thrown. For Java WEB development, this help document should not be missing.
Install JDK and manage JDK versions.
JDK has different versions. JDK versions may be different for different projects during development. Therefore, we recommend that you install JDK in a directory and name each JDK folder with the JDK version. We recommend that you do not install JDK on the system disk or on another disk, avoid the impact of system reinstallation on JDK. (Whether the original JDK can be used after the system is reinstalled is not confirmed .) For example, my JDK is installed in the JDK directory of the E drive. The existing JDK versions are 1.6 and 1.3.1 _ 12, the 1.4.2 _ 13 directory is created under the same level directory.
- 6 pages in total:
- Previous Page
- 1
- 2
- 3
- 4
- 5
- 6
- Next Page