How to activate data beans in JSP pages?
A data bean is a Java bean that is
used within a JSP page to provide dynamic content. A data bean normally
provides a simple representation of a WebSphere Commerce entity bean. The data
bean encapsulates properties that can be retrieved from or set within the
entity bean. As such, the data bean simplifies the task of incorporating
dynamic data into JSP pages.
A data bean is activated in one of the following ways:
by means of the wcbase:useBean tag (recommended)
<%@ taglib uri="http://commerce.ibm.com/base" prefix="wcbase" %>
<wcbase:useBean
id="storeAttrValueBean" classname="com.stockmann.hobbyhall.data.store.beans.StoreAttributeValueDataBean" >
<c:set value="${parameterValueId}" target="${storeAttrValueBean}" property="storeAttrValId" />
</wcbase:useBean>
by means of the following call:
com.ibm.commerce.beans.DataBeanManager.activate(data_bean, request, response)
where data_bean is the data bean to be activated, request is an HTTPServletRequest object, and response is an HTTPServletResponse object.
A data bean is activated in one of the following ways:
by means of the wcbase:useBean tag (recommended)
<%@ taglib uri="http://commerce.ibm.com/base" prefix="wcbase" %>
<wcbase:useBean
id="storeAttrValueBean" classname="com.stockmann.hobbyhall.data.store.beans.StoreAttributeValueDataBean" >
<c:set value="${parameterValueId}" target="${storeAttrValueBean}" property="storeAttrValId" />
</wcbase:useBean>
by means of the following call:
com.ibm.commerce.beans.DataBeanManager.activate(data_bean, request, response)
where data_bean is the data bean to be activated, request is an HTTPServletRequest object, and response is an HTTPServletResponse object.
Comments