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. 

Comments

Alfred Avina said…
As we know there are many companies which are converting into Big data app development. with the right direction we can definitely predict the future.

Popular posts from this blog

Dataload Utility In WCS

10 Steps to Configure Email – Websphere Commerce Server

Multiple Wish List