First refer to the source program of the following address, this is an authentication program, which is built from Struts.
Struts principle and practice (1) http://tech.ccidnet.com/pub/Article/c1078_a138284_p1.htmlstruts principle and practice (2) http://tech.ccidnet.com/pub/Article/c1078_a138372_p1.html
The source program does not have to be greatly modified, and only the name and two XML files are changed. This is the web.xml file and the struts-config.xml file.
First, the web.xml file should be added:
taglib>
That is, the position of the Struts tag library.
Then modify the struts-config.xml file, the two files are the core of the control, which is a bit of incorrect place to operate, especially, when configuring, pay attention to the order in the struts-config.xml file. Although the average person Not familiar with XML, in fact, it is not so difficult, it is difficult to lack the courage to face new technologies.
The configuration file is as follows:
XML Version = '1.0' encoding = 'UTF-8'?>
form-beans>
Type = "Moonsoft.test.j2ee.struts.logonaction" Validate = "false"> action> action-mappings> Struts-Config> Here In addition to configuring, there are some red warnings when JDeveloper running, all prompts apache.struts.util ... Some packages returns a NULL value error, I don't know if the compatibility is not good or the program. Now I have a little first place, I have to start with Struts-Config.xml and Action, the five tags are not difficult, the key should be skilled. Of course, I can't pay attention to the Struts process. I spent 4 days, configuring Struts's operating environment. I am very excited about what I have learned now. I think of a word in the "Fu Lei family", people always have climax and low tide, in the climax It's not more than nervous, it is not too much to be decadent. (Daxin is like this) may still need to add, adhere to your own ideals, always know what you are doing.