JSP development entry (1) ---- Install your machine to use JSP

zhaozj2021-02-08  222

JSP Development Getting Started (1) ---- Install your machine to use JSP you will need Java 2 Software Development Tool (JSDK), its original name is Java Development Tool (JDK) and Javaserver Website Development Tools (JSWDK) , Tomcat, or other web servers that support JSP. Sun offers JSDK with JSWDK for Windows, Solaris, and Linux platforms. If you want to use JSP on your current web server, but the server itself does not support JSP with Java servlets, you can try to see Allaire's JRun, its role is like Netscape Enterprise Edition with FastTrack Server, Microsoft Internet Network Information Server (IIS) and Personal Network Server (PWS), Apache, and Network Server of Other Servers. You can also use the Java version of the Apache web server, available in the latest JSWDK. Downloading and installing the component you need is currently published 1.2.2-001, JSDK downloadable version is in the form of a installable compression. The downloaded file is approximately 20MB, providing a complete Java development environment that allows you to build Java solutions using standard API as the core. However, the only thing your web server needs to be applied to JSP is the Java compiler. To let the web server know the location of the compiler, set the environment variable java.home to the JSDK installation directory. If you are installed on Windows and accept the preset directory, add this line program code java.home = c: /1.2.2 to your AutoExec.bat file and reboot. After installing JSDK, download and install the JSWDK or Beta version of Tomcat, with Java-based Apache web server. Where is installed, it is not important. It is important that you can find it. In general, it will be placed on the upper class, which allows you to replace JSWDK or JSDK web servers without moving other web servers. After you have installed this file, you can prepare to develop JSP. After you install JSWDK correctly, execute the StartServer instruction file to activate the network server, the preset communication port is 8080. To see if you have a correct installation tool after activating the server, you can load any of the example JSP files (http: // localhost: 8080 / examples / jsp /). If you can successfully implement an example file, you can know that you have set it right. If you see an error message in the console window of the activation server, then you need to solve this problem. The most frequently occurring problem is that there is no setting (or incorrect setting) environment variable java.home. To view the current environment setting, type SET in DOS mode.

转载请注明原文地址:https://www.9cbs.com/read-2083.html

New Post(0)