Please watch the recording before you prepare it. Install and configure the MyECLIPSE plugin (I use 3.8.4), Tomcat is best to use 5.0 or more. http://free3.e-168.cn/Oksonic/download/myeclipse-struts-01.exe started. . .
New Construction
Hello
Add a Strust Framework for Engineering, use version 1.1
Here I am using Tomcat5.0.28, but the version of 5.0 or more is OK.
Use the wizard to add a frame model file, including JSP, ActionForm, and Action
Enter name Hello in USE CASE
There is a bit card in this place. . . Wait, there is a lot of places to wait later. . .
SUPERCLASS Select Org.Apache.struts.Action.Actionform
Create Jsp from? In the JSP tab is hooked. Used to create a JSP page
The next step is created to hold it by default. .
Here is to wait here. . .
Here I will open all files in order to change it for a while. . .
Next, you need to change the Helloform.java file. . .
One of the errors here is that there is no library, select the ActionError string, use Ctrl Shift
o You can add it automatically. .
This file is changed. The next first creates a Forward configuration. . .
The wizard changes here. . .
Change the purpose of these two places to return an error message when submitting the page, the information content is
The content entered in the source file. .
Start the service now so that it is successful. . .
If you do not enter any content, if you do not enter anything, if you have any value, you will return
An empty page, this page is from / hello.jsp
If you want to return the input content to the Hello.jsp page, please see the next time. . .
If you don't understand, please contact me if you don't understand. .
Email: oksonic@sina.comqq: 71279650 Please indicate struts
Here is the error message. .
OK is returned normally. . .
Go back. . .