struts2的action配置了返回类型为json就是ajax请求的数据就不能配置其他返回视图了吗,比如我想在这个Action中返回一个jsp
也就是我想在一个Action中即配置json返回也想配置jsp这种形式是不行的吗?如果可以该怎么配,如果不可以我就只能做成两个action了!!!actionstrutsjsonajaxjsp
也就是我想在一个Action中即配置json返回也想配置jsp这种形式是不行的吗?如果可以该怎么配,如果不可以我就只能做成两个action了!!!actionstrutsjsonajaxjsp
<result name="search">/WEB-INF/pages/pc/authority/mcoAdhocCharges/mcoAdhocChargesSearch.jsp</result>
<result name="searchview">/WEB-INF/pages/pc/authority/mcoAdhocCharges/mcoAdhocChargesSearchView.jsp</result>
<result name="vesselchargesdetails">/WEB-INF/pages/pc/authority/mcoAdhocCharges/vesselchargesdetails.jsp</result>
<result name="ajax" type="json"></result>
<result name="input">/WEB-INF/pages/pc/authority/mcoAdhocCharges/mcoAdhocChargesSearch.jsp</result>
</action>我这样配置就不行