Websphere Commerce 7自定义服务调用

时间:2012-03-26 09:12:59

标签: java websphere commerce

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中添加了一个自定义视图

1 个答案:

答案 0 :(得分:1)

您可以将您的CustomView作为AjaxOrderItemAdd方法中的URL参数传递。

请参阅

http://publib.boulder.ibm.com/infocenter/wchelp/v7r0m0/topic/com.ibm.commerce.developer.doc/refs/rosorderitemadd.htm

了解更多详情。