Websphere commerce 7麦迪逊商店。 我在调用orderadditem后试图改变视图。 在麦迪逊,点击任何项目中的addto cart,它将调用AjaxOrderItemAdd服务。 但添加后我需要从struts-config-ext.xml更改视图。
提升我所做的是。 创建了一个命令MyOrderItemAddCmdImpl
public void performExecute() throws ECException {
super.performExecute();
responseProperties.put(ECConstants.EC_VIEWTASKNAME, "CustomView");
setResponseProperties(responseProperties);
}
并在cmdreg表中添加了条目
update cmdreg set classname='com.mindtree.cust.MyOrderItemAddCmdImpl' where interfacename= 'com.ibm.commerce.orderitems.commands.OrderItemAddCmd';
并在struts-confid-ext.xml中添加了一个自定义视图
答案 0 :(得分:1)
您可以将您的CustomView作为AjaxOrderItemAdd方法中的URL参数传递。
请参阅
了解更多详情。