When configuring log4j, XML Version = "1.0" Encoding = "UTF-8"?>
< Param name = "file" value = "c: /strutstest.log" /> layout> appender>
category> log4j: configuration> The path cannot be written into c: Strutstest.log Is used to filter LOG, only the debug log in the file. category> without because of the LOG that avoids Struts Hit in the file. When Server is server, let Web.xml take your own Selvet, action servlet-name> src.java.app.pjActionServlet servlet-class> read log4j : String path = getServletconfig (). GetInitParameter ("config-path"); if (path! = Null&&! Path.equals (")) {configdir = path;} configdir = getServletContext (). GetRealPath (configdir); Domconfigurator.configure (Concatpath (ConfigDir, "Log4j.xml)); there is no problem with Ant's use. When using the Validate plug-in, from WOM must inherit the ValidatorForm, don't know why ValidatorActionForm is not.