Websphere 商务 7 麦迪逊商店。在调用 orderadditem 之后,我正在尝试更改视图。在 madison 中单击任何项目中的添加到购物车,它将调用 AjaxOrderItemAdd 服务。但添加后我需要从 struts-config-ext.xml 更改视图。
Uptill 我所做的是。创建了一个命令 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 中添加了一个自定义视图