你在struts-config中配了相关的actionMapping了吗?

解决方案 »

  1.   

    return actionMapping.findForward("XXXXXXXXXXX");配置文件中没有定义,或定义的不对,报错是temp找不到,你定义的什么~~~
      

  2.   

    我在struts-config已经设置了"temp"了!
      

  3.   

    这是你带ACTIONFORM的JSP页面出错, /temp<html:form action="temp">是不是这样写的?
    去 Struts-config.xml中看是否有   <action path="/temp" type="TempAction" />你返回的页面包含了一个错误映射的ACTION,所以 return null时没有错.