Struts 1和编译

时间:2018-10-21 12:20:54

标签: java struts-1

学习支柱1并面对一种情况。拥有tomcat服务器和struts 1软件。我无法在命令提示符下编译Struts Action类。使用

D:\sample_struts_application>javac -classpath D:\jakarta-tomcat-5.0.30\common\li
b\*.jar;D:\struts1.1\jakarta-struts-1.1\lib\*.jar CustomerAction.java
CustomerAction.java:1: error: cannot find symbol
public class CustomerAction extends Action
                                    ^
  symbol: class Action
CustomerAction.java:4: error: cannot find symbol
public ActionForward execute(ActionMapping mapping , ActionForm form, HttpServle
tRequest request,
                             ^
  symbol:   class ActionMapping
  location: class CustomerAction
CustomerAction.java:4: error: cannot find symbol
public ActionForward execute(ActionMapping mapping , ActionForm form, HttpServle
tRequest request,
                                                     ^
  symbol:   class ActionForm
  location: class CustomerAction
CustomerAction.java:4: error: cannot find symbol
public ActionForward execute(ActionMapping mapping , ActionForm form, HttpServle
tRequest request,
                                                                      ^
  symbol:   class HttpServletRequest
  location: class CustomerAction
CustomerAction.java:5: error: cannot find symbol
HttpServletResponse response) throws Exception
^
  symbol:   class HttpServletResponse
  location: class CustomerAction
CustomerAction.java:4: error: cannot find symbol
public ActionForward execute(ActionMapping mapping , ActionForm form, HttpServle
tRequest request,
       ^
  symbol:   class ActionForward
  location: class CustomerAction
CustomerAction.java:16: error: cannot find symbol
CustomerForm cust = (CustomerForm)form;
^
  symbol:   class CustomerForm
  location: class CustomerAction
CustomerAction.java:16: error: cannot find symbol
CustomerForm cust = (CustomerForm)form;
                     ^
  symbol:   class CustomerForm
  location: class CustomerAction
8 errors

为什么不编译?正确提供Struts罐子。是什么原因?

0 个答案:

没有答案