[J2EE] Project hard notes

xiaoxiao2021-03-06  43

These three days have always made the problem of Eclipse-TOCMAT-STRUTS. I finally got it before I get off work :-) My approach is to configure Struts to the standard J2EE project, specifically: Put * .jar Under WEB-INF / LIB, write the struts-config.xml file under Web-INF, put the TLD under Web-INF, configure the web.xml file; publish the J2EE project as a standard WAR file when released Put it directly to $ Tomcat / WebApps /

1. Struts-config.xml file Configuration Struts configuration should be the configuration of the struts-config.xml file, the role of struts-config.xml file is to map Form Bean && Action Bean, where the most important thing is < Action-mapings> The corresponding and forward forwarding between JSP <-> Form Bean <-> Action beans (used in action beans); worth noting: JSP Text / Password et al. must have a getter / setter method in its corresponding form bean, otherwise it will be prompted (spent 2 days to get!)

2. Engineering J2EE's J2EE in Tomcat can be easily developed in Eclipse, this intermediate, bean and servlet unit test can also be done in Eclipse, when everything seems to have no problem, you can release it; worth Note that you should make Eclispe first compile you, you will compile SRC to .class to put it in Web-Inf / Class, (I spent 1 morning, I didn't get it. Fortunately, after compiling, you can use Lomboz to release This thing will help you publish the project as .war file

3. Problem 1) The whole process is very troublesome, especially when debugging .jsp, I look forward to a relatively elegant and efficient way 2) When using Lomboz, you should specify a directory, but now I don't know 3) Eclipse Debugging is also more difficult, look forward to a simple way

Well, clear, don't know how even the expression ability? 2005-1-8

转载请注明原文地址:https://www.9cbs.com/read-71083.html

New Post(0)