How can I get a running environment of Servlets and JSP?
No matter what server you are using, you can find the Servlets engine for this server.
You can try to use these different Servlets engines, but I suggest using Allaire's JRun. JRun intercepts requests to Servlets and JSP, and requests the running results to be sent back to the client through the Web server. JRun is longer than Sun's Servlets and JSP, and supports more features.
JRun supports:
◆ Enterprise Java Beans 1.1
◆ Java Transaction API 1.0
◆ Java Messaging Service 1.0
◆ Java Server Pages 1.1
◆ Java Servlets 2.2
JRun installation is very simple and easy to set. It also has the ability to set JDBC data sources, so you can avoid writing a lot of code in the program to handle database problems.
Next we will briefly introduce how to install JRun. Some of the following steps are different from those of other engines:
1. Make sure that your machine has JDK 1.2.2 or later installed. Disable your Web server and other applications.
2. Run the JRun installer.
3. During the JRun installation process, I will ask you the port number, which is used to connect to the server. We recommend that you use port 8000. However, you can select another port between port 8100 and port 8199.
4. After JRun is installed, set your Web server to work with JRun. If you are using IIS4.0 or 5.0, open the control panel, select the WWW Service, and click the edit button. Select the local path field and set the execution permission. You can set this global attribute, but this may cause security problems. Click OK.
5. Now you can run JMC (JRun Management Console) and enter // localhost: 8000/in the browser /. After logging on as Administrator, you can set each server. We recommend that you set the default server first. Of course, you can also set other Web servers. Different servers may have different settings.
Now you can test whether your JRun can be run.
- Servlet Container session tracking
- Detailed description of Servlet instances
- Introduction to Servlet read request headers
- Call the Http Servlet Request Method
- Basic Structure of Servlet