Cannot forward after response has been committed 错误解决

来源:互联网 发布:linux 没有.ssh目录 编辑:程序博客网 时间:2024/05/22 06:17

Cannot forward after response has been committed问题解决及分析 

 

这里使用旧框架中的jsp方式


  <!--地理信息查询(根据所属单位-->
  <action scope="request" attribute="geographicForm"
   name="geographicForm"
   path="/geographic_information_query_init"
   type="cn.edu.sdu.framework.bs.BaseAction">
   <forward name="next"
    path="/WEB-INF/jsp/housegraph/house_geographic_info_query.jsp"
    contextRelative="true" />
  </action>
  <!--Json方式写回数据,不需要写forward,若加上   type="cn.edu.sdu.framework.bs.BaseAction">
   <forward name="next"
    path="/WEB-INF/jsp/housegraph/house_geographic_info_query.jsp"
    contextRelative="true" />,则会报错:Cannot forward after response has been committed

-->
  <action scope="request" attribute="geographicForm"
   name="geographicForm"
   path="/geographic_information_query"
   type="cn.edu.sdu.framework.bs.BaseAction">
  </action>

 

说明:如果使用 type="cn.edu.sdu.framework.bs.BaseAction">,则需要自己再定义一下business-beans 中还需配置。若不用此type,则需自定义一种Action类型

0 0
原创粉丝点击