[J2EE] difficult project notes

Source: Internet
Author: User
In the past three days, the configuration problem of Eclipse-Tocmat-Struts has always been a big problem. I finally finished it before work :-)
My practice is to configure Struts to the standard J2EE project, specifically: Put *. jar under WEB-INFlib, write
WEB-INF file under the struts-config.xml, put the tld under the WEB-INF, configure the web. xml file;
At the time of release, release the J2EE project as a standard war file and run it directly under $ TOMCATwebapps.
1. Struts-config.xml file configuration
STRUTS configuration should be the most important struts-config.xml file configuration,
The role of the struts-config.xml file is to map form bean & action bean, the most important of which is
<Action-mappings> </action-mappings> ING, which defines JSP <-> form bean <-> ACTION BEAN
And forward (used in action bean); note: text/password in JSP
And other text labels must have the getter/setter method in the corresponding form bean. Otherwise, an error will be prompted.
(It took 2 days to get it done !)
2. Release of the project under TOMCAT
Standard J2EE can be easily developed in ECLIPSE. In the middle, the BEAN and SERVLET unit tests can also be performed in
In ECLIPSE, you can release it when everything seems to be okay. It is worth noting that you should make ECLISPE
Compile for you first, and put src into. class into WEB-INFclass. (it took me one morning to finish it. Fortunately, ZHENGQ
After compilation, Lomboz can be used for release. This will help you release the project as a. war file.
3. Existing problems
1) the entire process is very troublesome, especially when debugging. jsp, we look forward to a more elegant and efficient method.
2) when lomboz is used for publishing, you should be able to specify the directory, but you still do not know
3) eclipse debugging is also quite complex, and we look forward to a simple method.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.