Saturday, August 2, 2008

Set JSP development, runtime environment

Abstract: Setting JSP development and runtime environment

Servlet and JSP 2.1 installation development tools

To learn Servlet and JSP development, first of all, you must be prepared to comply with a Java Servlet 2.1/2.2 and JavaServer Pages1.0/1.1 standardized development environment. Sun provides free JavaServer Web Development Kit (JSWDK) can be downloaded from http://java.sun.com/products/servlet/.

JSWDK installed, you should tell javac, when the document was compiled Where to find Servlet and JSP category. JSWDK Installation Guide of this detailed description, but the main servlet.jar and jsp.jar is to join the CLASSPATH. CLASSPATH instructions Java is a class how to find the document environment variables, if we do not set CLASSPATH, Java standards in the current directory and find the system; If you set up a CLASSPATH, do not forget that includes the current directory (that is, in the CLASSPATH contains. " ").

Furthermore, in order to prevent and other developers to the same Web server installed on a naming conflict Servlet best to pack their own Servlet Add inside. At this time, the packets in the top-level directory structure also joined CLASSPATH will bring a lot of convenience. Please see below specify.

2.2 installation support Servlet Web server

In addition to developing tools, you want to support the installation of a Java Servlet Web server, or in the existing installed on the Web server Servlet package. If you are using the latest Web server or application server, it may already have all the necessary software. Please check the Web server document, or visit http://java.sun.com/products/servlet/industry.html Show support Servlet server software inventory.

Although the final run Servlet is always business-class servers, but when the study began, with a desktop machine can run on the free system development and testing are adequate. Below are some of the most popular products.

Apache Tomcat.

Tomcat Servlet 2.2 and the JSP 1.1 specifications to achieve the official reference. Tomcat can separate small Servlet and JSP test server, but also can be integrated into the Apache Web server. Until early 2000, the Tomcat is the only support Servlet 2.2 and JSP 1.1 specifications of the server, but there have been many other servers that provide support in this respect.

Apache Tomcat and the same is free of charge. However, the rapid, steady, the Apache server installation and configuration with a little trouble, the Tomcat also has the same shortcomings. And other business-class Servlet engine compared to the workload of Tomcat configuration, it must more. For details, please see http://jakarta.apache.org/.


JavaServer Web Development Kit (JSWDK).

JSWDK is Servlet 2.1 and JSP 1.0 achieve the official reference. The Servlet and JSP application deployment to the formal operation of their servers, JSWDK can separate small Servlet, JSP test server. JSWDK is also free, and has good stability, but its installation and configuration also more complex. For details, please see http://java.sun.com/products/servlet/download.html.


Allaire JRun.

JRun is a Servlet and JSP engine, it can be integrated into Netscape Enterprise or FastTrack Server, IIS, Microsoft Personal Web Server, version lower Apache, the WebSite O'eilly or StarNine Web STAR. Supports up to five concurrent connections restricted version is free of charge, does not exist in the commercial version of this restriction, and increased remote management console such functions. For details, please see http://www.allaire.com/products/jrun/.


The New Atlanta ServletExec

ServletExec is a fast Servlet and JSP engine, it can be integrated into the most popular Web server platform includes support for Solaris, Windows, MacOS, HP-UX and Linux. ServletExec free to download and use, but many advanced features and management tools only in the purchase of a license can be used only after. New Atlanta also offers a free Servlet debugger, the debugger can be in many popular Java IDE work. For details, please see http://newatlanta.com/.


Gefion the LiteWebServer (LWS)

LWS is a support Servlet 2.2 and JSP 1.1 free small Web server. Gefion WAICoolRunner there is a free plug-in, using the plug-in for Netscape FastTrack and Enterprise Server 2.2 increase Servlet and JSP 1.1 support. For details, please see http://www.gefionsoftware.com/.


Sun's Java Web Server.

The servers all use Java languages, and is the first to provide Servlet 2.1 and JSP 1.0 specification support of the integrity of the Web server. Although Sun now has shifted to Netscape / I-Planet Server no longer develop Java Web Server, but it is still a popular Servlet and JSP learning platform. To receive a free trial version, please visit http://www.sun.com/software/jwebserver/try/.

No comments: