JDK configuration: Right-click My Computer -> System Properties -> Environment Variables Set in User Environment Variables: Variable Name Java_Home Variable Value C: /java/JDK1.5.0_01 (JDK Installation Path) PS: If not a Struts architecture, You can use Java_Home, Tomcat 5.0 can still be able to do it, (Tomcat 5.0 can not be included in the environment variable) no problem. The method of detecting is startup.bat in C: / Tomcat 5.0 / bin, if you can run, then there is no problem. Set in the system environment variable: 1. Variable name class_path variable value.; C: /java/jdk1.5.0_01/lib/tools.jar; c: /java/jdk1.5.0_01/lib/dt.jar; C: /Java/jdk1.5.0_01/lib/htmlconverter.jar (JAR file in the lib installation path) 2. Locate the variable name PATH, add C: /java/jdk1.5.0_01/bin after the variable value
Eclipse3.0 Tomcat 5.0 Jakarta-Struts-1.1 LOMBOZ Configure Eclipse 3.0, such as to C: / Eclipse v3.0 to decompress TomcatPluginv3, take the com.sdeo.eclipse.tomcat_3.0.0 in the folder to C: / Eclipse v3.0 / plugins This Eclipse menu is more Tomcat, there is a Startup, STOP, and RESTARTUP options, it is very convenient to be a lot :) Open Eclipse, in Window -> Preferences -> Tomcat, select Tomcat version This example is Tomcat 5.0, in Tomcat Home Select Tomcat's press directory, the root directory is OK, such as: C: / Tomcat 5.0.
Next, configure Lomboz, you can configure the Lomboz to go to the official website to download EMF, unzip, then take the test in C: / Eclipse v3.0 / features, take the Plugins to C: / Eclipse v3.0 / plugins, then start Eclipse, you can see Lomboz under Window -> Preferences, if you can't see it, think if you think about it, do you forget to match EMF?
The environment variables are equipped, and Of course, I will build a struts project: Open Eclipse, File -> New -> New Project, the new project is struts-test, add Struts-Test | SRC CN BJ Test Actions Forms | Web web-inflasses LIB needs to be aware that the name of the classes folder must be like this, I am a very troublesome trouble, :-)
Unzip JAKARTA-STRUTS-1.1 Put the * .jar to LIB, take * .TLD to Web-INF, build web.xml under Web-INF (put C: / Tomcat 5.0 / WebApps / Struts-EXAMPLE / Web.xml test under web-infers, you can :-) If there is no struts-example, you get JAKARTA-STRUTS-1.1, WebApps * .War tested to Tomcat's WebAPPS, restart Tomcat, these WAR files It will be decompressed, these are the Struts example provided by AppAach. Of course, there is Struts-Config.xml, the following is the simplest: XML Version = "1.0" Encoding = "UTF-8"?>