1.
Install JDK
This is an important step in JSP development and a prerequisite for installing the JSP Engine (Tomcat, Resin, Weblogic, etc,
Generally, JSP engines are compiled in Java.
My JDK version is 1.6.0 and the platform is Windows. You can download the installation file from the website of Sun.
Https://sdlc3e.sun.com/ECom/EComActionServlet/DownloadPage :~ : Com. sun.
Sunit. sdlc. content. DownloadPageInfo; jsessionid = 033BE12AFE722B242F5AADE1
2a%4eb; jsessionid = 033be12afe722b242f5aade12a%4eb ).
It is easy to install JDK on Windows platform. Run the Installation File jdk-6-nb-5_5-win.exe and click
Click Next.
After the installation is complete, add the JDK installation path to the system environment variables, for example, install JDK to C: "jdk1.6.0,
Add the JAVA_HOME variable to the environment variable. The variable value is C: "jdk1.6.0. This completes the JDK installation.
2.Install Tomcat
Tomcat 6.0 is used here, and the platform is Windows. The above JDK installation must be completed before installation. Install
Files can be downloaded on the Tomcat site (http://tomcat.apache.org/download-60.cgi#6.0.16) Note
Download version: Windows Service Installer. Run apache-atat-6.0.16.exe directly after the download, always
Click Next. During installation, it will automatically find your JDK installation path.
Run Tomcat, open "start"-"run", Enter cmd and press enter to enter the bin directory of Tomcat, and start
The command is shutdown. Open your browser and enter http: // localhost: 8080/in the address bar /,
Test whether Tomcat is installed normally. If it runs normally, the following message is displayed:
3.Install Eclipse
Eclipse is an open-source IDE. First, download the Eclipse installation file, which uses Eclipse3.3.2 (
Http://eclipse.cdpa.nsysu.edu.tw/downloads/drops/R-3.3.2-200802211800/winPlatform.php#EclipseSDK, download and directly run eclipse.exe, the first time
The system automatically finds the JDK and completes the corresponding configuration, selects the path of the workspace, and then enters the main interface of Eclipse.
You can download the Chinese Language Pack plug-in.
4.Install myEclipse
Download myEclipse from http://www.myeclipseide.com,
Run myeclipse_6.0.1ga_e3.3.20.installer.exe. First, click "next", then accept the protocol, and then click "next"
, Select the Eclipse directory, click "next", select the installation directory of myEclipse, continue "next", and then
"Next"-> "install"-> "next"-> "done ". This completes the installation of myEclipse.
5.Configure myEclipse
When eclipse.exe is run, updates are also detected. OK, and then restart Eclipse.
1) Add jdk path
Menu (main Menu)-> Window (Window)-> Preferences (Preferences)-> java-> Installed JREs
(Installed jre), click Add ).
Browse jdk path, click OK
2) Set Server
On the menu bar, choose window> preference> MyEclipse "--
"Servers" -- "Tomcat" -- Tomcat6.x
Set Tomcat Server to "Enable" and "Tomcat Home Directory" to Tomcat6.0
Other DIRECTORY options will be automatically generated.
Next, select Tomcat6.x -- JDK and select the JDK added before Tomcat jdk name.
3) configure the default encoding
Still "window" in the menu bar -- "preference" -- "General )"--
"Content Types" -- "text )".
Enter UTF-8 in Default encoding and click Update to add the Java class file
(Java Properties File) and other character encodings are "updated" as "UTF-8 ".
6.Create a project
Main Menu-> file-> New-> web project
Right-click src -- new -- package
Right-click the package -- new -- java class
Right-click WebRoot -- New -- JSP
7.Release settings
Right-click the Project name -- MyElipse -- Add and Remove Project Deployments, and click Add
Select Tomcat6.x in the Server.
Click Tomcat6.x and click "Redeploy" to release the project. The project will be updated and released here.
8.Start webService
View running results