日期:2014-05-16 浏览次数:20727 次
$.ajax({
url: getRootPath() + '/merchant/shop!toEdit',
type : 'Post',
cache : false,
dataType : 'html',
data:{
},
success : function(d) {
alert(d);
},
error : function(XMLHttpRequest, textStatus, errorThrown) {
alert(XMLHttpRequest.responseText);
alert(XMLHttpRequest.readyState);
alert(textStatus);
}
public String toEdit() throws Exception{
merchant = (Merchant)getSession().getAttribute("merchant");
shop = shopService.queryByMerchant(merchant.getId());
return "toEdit";
}
<action name="shop" class="com.baidu.web.merchant.action.ShopAction">
<result name="toEdit">/WEB-INF/pages/editShop.jsp</result>
</action>