Websphere commerce 7 Madison Store. I am trying to change the view, after calling the orderadditem. In madison click on addto cart in any item it will call AjaxOrderItemAdd service. But after adding i need to change the view from struts-config-ext.xml.
Uptill what i have done is . created a command MyOrderItemAddCmdImpl
public void performExecute() throws ECException {
super.performExecute();
responseProperties.put(ECConstants.EC_VIEWTASKNAME, "CustomView");
setResponseProperties(responseProperties);
}
and added entry in cmdreg table
update cmdreg set classname='com.mindtree.cust.MyOrderItemAddCmdImpl' where interfacename= 'com.ibm.commerce.orderitems.commands.OrderItemAddCmd';
and added a custom view in struts-confid-ext.xml
You can pass your CustomView as an URL parameter in the AjaxOrderItemAdd method.
Please refer to
for more details.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.