Struts development environment configuration

xiaoxiao2021-03-06  75

Struts development environment configuration

Operating environment: JDK 1.4, JBoss 3.2.2, WinXP

Development environment: JBuilder 9.0

Frame: Struts 1.1

Database environment: Oracle 9i

First, JBoss installation configuration

Download and install JBoss 3.2.2, the Windows version is jboss322.zip, and the running bin / run.bat can be executed after downloading. It is recommended that it is best to put a run.bat shortcut on the desktop so that you can save a lot of time in future debugging.

Here you can tell you a FTP address (202.194.201.24), here you can download JBoss, in addition to this, there are a lot of good things, you are interested to see it.

Second, JBUILDER 9 JBOSS development environment configuration

In order to effectively exercise Struts in the JBoss environment, you need to configure JBuilder 9 to support JBoss environment development.

l Download software JBoss OpenTool in http://sourceforge.net/projects/jboss-opentool, unzipped to JBuilder's lib / ext directory, restart JBUILDER.

l Start JBuilder, open Tools / Configure Servers, and select JBoss 3X (which is gray). Activate Enable Server Checkbox. Select your JBoss installation directory. Such as d: /jboss-3.2.2.

l Selecting the Custom Tab and sets the installation directory of JBoss, such as D: /JBoss-3.2.2 ,Jboss Configuration To Use is default, this is the standard run configuration of JBoss, all is a cluster configuration.

After confirming, your JBuilder supports JBoss 3.x servers.

In order to better develop the Struts instance, you need to select Project / Default Project Properties in JBuilder, open the Server page, in the selection box below Single Server for All Services in Project, select JBoss3.x, and ensure that the lower left square is selected, EJB , JSP / servlet, as shown below:

Third, let JBuilder 9 support Struts1.1

JBuilder 9 only supports Struts 1.0 when default, now let us support Struts 1.1 by upgrading, steps below:

l First Download Struts 1.1

l then select the Struts of the Tools / Configure Libraries of JBuilder.

l Select Class to delete the original Struts 1.0 packet, add all JAR packets in the Struts 1.1 directory using add. The added interface is shown in the figure:

l Select Framework, start from struts-bean, select Edit one by one, and then select the new struts-bean.tld in the Struts 1.1 directory, others can constant. If you don't trust the original TLD file, you can also delete it all, then select the various TLD files in the Struts 1.1 directory. Struts-template has been replaced with Struts-Tiles in Struts 1.1, which can remove. If you need Tiles, add the Struts-Tiles tag library. The completed interface is as shown in the figure: l After the replication is confirmed, your JB9 began to support Struts 1.1.

Through the above steps, you can enter the Struts instance, try, friends, I wish you good luck.

Please pay attention to other articles of ZWD2878, thank you.

Email: zwd2878@126.com

QQ:

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

New Post(0)