Experience the real struts development
Yang Hengxian (yanghx@70345.com)
The so-called Struts development is not simple to use ACTION, ActionForm, ActionForward and other components, but should be based on the design of the module to the module in the ejb architecture. So I think Struts development should be established in the development of light EJB architecture.
So the real Struts development is to combine this underlying database of Hibernate, combined with professional log system log4j, including the development of true EJB exception processing mode.
Below is the module that must be involved in the real struts development:
Struts 1.1
Hibernate 2.1
Log4j
Junit
CACTUS
Jmeter
Suitable cache
Suitable ConnectionPooler
Suitable threadpooler
In the interface design, in order to achieve a full unified recommendation, this is new in Struts1.1.
Below we demonstrate how to conduct standard Struts development. (Explanation in the nature of engineering development)
Environmental configuration:
Eclipse
3 m
Seduce
Tomcat 4.1 Eclipse plugin
MyECLIPSE for M7
MySQL4
This is ready before development.
Let's re-plan the development of the previous XXXX system, temporarily named myWeb
Engineering card
date
2004-3-1
Seduce
21:20
the work
Environmental configuration and its test
Executor
Yang Hengxian
Time (estimate)
1 hour task list:
l Re-build the environment, contain databases, web servers
l Construction Development Directory L Test the above error Note:
Task tracking:
date
carry out
carry on
time cost
Note
2004-3-17
Re-build the environment
30 points
OK
2004-3-17 Eclipse
20
OK
2004-3-17 test driver
10
OK
Web folder assignment
SRC
Java source file
Web
Site full file
Lib
Compile-use library
Test
Test folder
DOC
Documentation
Testsrc
Try the Java source file
Resource
resource
Test / testdata
Test Data
TEST / UnitTest
JUnit unit test
TEST / WebTest
CACTUS and JMETER implementation Web Test JMeter for web application level and pressure test
For convenience, we change Tomcat to monitor 80 ports and no longer 8080. Modify the server.xml under the Tomcat directory.
Port = "8080" MINPROCESSORS = "5" maxprocessors = "75" Enablelookups = "True" redirectport = "8443" AcceptCount = "100" debug = "0" connectionTIMEOUT = "20000" Useurivalidationhack = "false" disableuploadtimeout = "true" /> Change 8080 to 80