你可以在服务端使用struts.add..什么的添加错误信息,在客户端使用struts标签显示出来错误信息啊

解决方案 »

  1.   

    在web.xml中配置:
    <error-page>
    <error-code>404</error-code>
    <location>/error/e-404.html</location>
    </error-page>
    <error-page>
    <error-code>500</error-code>
    <location>/error/e-500.jsp</location>
    </error-page>
    类似这样的配置。
      

  2.   

    谢谢你们的回答,问题没解决,项目是struts2、spring、openJPA框架做的,打压包后放到linux下的tomcat中,启动tomcat后页面报503错误,后台查看tomcat启动日志,提示没有加载到spring包文件的class类。解决方案是把spring的spring-agent.jar、spring-tomcat-weaver.jar包放到apache目录的lib目录下。如果说还报503错误的话,查看下后台文件提示什么错误,查看错误信息是在apache目录下的logs/catalina.out文件,如果还是提示找不到某某类的话,建议查看下是否缺少jar包文件。感谢大家。