楼主把你的jsp页的内容贴出来

解决方案 »

  1.   

    检查所对应的action是否名字大小写匹配
    查路径,映射,是否正确
      

  2.   

    检查struts-config.xml文件中path="/register"映射的type属性值所对应的类路径是否和真实的类路径相符........
      

  3.   

    问题出现在<html:form action="/register.do" method="post" focus="id">
    这个/register.do  存在吗??
      

  4.   

    在struts-config.xml中的配置是:
    <action path="/register" type="action.RegisterAction" scope="request"  name="registerForm" validate="false" input="/newstudent.jsp">
    <forward name="success" path="/resuccess.jsp">
    </forward>
    <forward name="failure" path="/error.jsp">
    </forward>
    这个应没有问题.
      

  5.   

    这个/register.do当然存在,就是action.RegisterAction
      

  6.   

    问题就是这个
    <action path="/register" type="action.RegisterAction" scope="request"  name="registerForm" validate="false" input="/newstudent.jsp">
    --------
    <action path="/register" type="actions.RegisterAction" scope="request"  name="registerForm" validate="false" input="/newstudent.jsp">
    异常其实已经很清楚了
    是actions.RegisterAction而不是action.RegisterAction
    楼主太粗心了
      

  7.   

    我的文件夹名是action而不是actions.
      

  8.   

    但是这个异常怎么解释呢?
    java.lang.NoClassDefFoundError: action/RegisterAction (wrong name: actions/RegisterAction)你肯定在什么地方写的是actions啊