读书人

struts1.3 的错误如何查? 不显示出来.

发布时间: 2013-11-08 17:52:35 作者: rapoo

struts1.3 的异常怎么查? 不显示出来..
<action name="messageServiceForm" path="/Message"
type="org.springframework.web.struts.DelegatingActionProxy"
input="/Message"
parameter="method"
validate="false"
scope="request">
<forward name="testChannel" path="/WEB-INF/admin/TestChannel.jsp" / </action>

<global-exceptions>
<exception key="errors.message" type="java.lang.Exception" path="/common/ErrorExceptionPage.jsp" scope="request"/>
</global-exceptions>


public ActionForward testChannel(ActionMapping map1, ActionForm aform, HttpServletRequest re, HttpServletResponse res) {

System.out.println("aaaa");
return map1.findForward("testChannel");
}


配置好像没有错,tomcat启动没有错.
运行 http://127.0.0.1:8080/Message.do?method=testChannel

直接跳转到异常页面去了..global-exceptions tomcat也没有任何提示.. 怎么显示或看到这个异常呢.?
[解决办法]
现在应该都用struts2了吧

读书人网 >Java Web开发

热点推荐