Hi,

Can someone point(answer) where is the context and parameters object which
is available in BSH initialized/created? Is it part of the request like
delegator and/or other objects are?

e.g. /ofbiz/applications/order/webapp/ordmgr/.../category.bsh has 

import org.ofbiz.base.util.*;
import org.ofbiz.entity.*;
import org.ofbiz.product.catalog.*;
import org.ofbiz.product.category.CategoryWorker;
import org.ofbiz.product.category.CategoryContentWrapper;

detailScreen = "categorydetail";
catalogName = CatalogWorker.getCatalogName(request);

productCategoryId = request.getAttribute("productCategoryId");
if (productCategoryId == null) {
    productCategoryId = parameters.get("category_id");
}
context.put("productCategoryId", productCategoryId);
-- 
View this message in context: 
http://www.nabble.com/context-object-in-bsh-tp15885836p15885836.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to