Struts installation configuration

xiaoxiao2021-04-09  484

Struts installation configuration

1. The installation of Struts is relatively simple. The following is Tomcat 4.1.24 as an example to tell the installation process. First, please download struts at http://jakarta.apache.org/struts, it is recommended to use the release version, now the highest version is 1.1, and you get a zip file after downloading. Understand the ZIP, you can see this directory: LIB and WebApps, WebApps have some WAR files. Suppose your Tomcat is put under C: / Tomcat, copy those WAR files to C: / Tomcat / WebApps, and restart Tomcat. Open the browser and enter: http: // localhost: 8080 / struts-example / index.jsp, if you can see the deep blue icon of "Powered By Struts", the explanation is successful. This is an example of Struts comes with a detailed explanation documentation, which can be used as a beginner's entry tutorial. In addition, Struts also provides a system useful object: XML processing, automatically handles JavaBeans property, international tips and messages through Java Reflection APIS.

2. About Struts configuration, because I use jbuilder9 as the development tool, here is mainly to configure Struts in jbuilder: JBuilder itself has integrated struts1.0, but most of the development is under Struts1.1, So here, the configuration of struts1.1 in jbuilder:

1, download jakarta-struts-1.1.zip package; jakarta-struts-1.1-src.zip package

2, press JAKARTA-STRUTS 1.1.zip to the C: / jBuilder9 / ThirdParty directory under the jakarta-struts-1.1-src.zip package Unexpected to the C: / jbuilder9 / extras directory

3, start JBUILDER9

4. Configuring library (1) Select Menu Tools / Configure Libraries (2) New Library (3) In the New Library Wizard dialog box, Name Enter: Struts1.1, Location Optional: User Home, Library Paths: add Add to C : /JBuilder9/thirdparty/jakarta-struts-1.1/lib/struts.jar (4) OK Create library (5) Select Struts1.1, modify library settings Class: c: /jbuilder9/thirdparty/jakarta-struts-1.1/lib /struts.jar Source: C: /JBuilder9/extras/jakarta-struts-1.1-src/src/share DocumentationC: /JBuilder9/thirdparty/jakarta-struts-1.1/webapps/struts-documentation.war/api Required Library: empty Framework: In the Framework drop-down box, select Struts, 6 Taglib will automatically appear. Struts-BEAN STRUTS-HTML STRUTS-LOGIC STRUTS-TEMPLATE STRUTS-TILES STRUTS-NESTED (6) Click OK to create Library success. Regarding the configuration on other tools, there are many information on Eclipse.

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

New Post(0)