Develop > Controller layer > Management Center Web application > Map between the Management Center client and WebSphere Commerce nouns > Retrive Management Center objects by transforming Nouns into XML
GetCatalogEntry.jsp example
This controller JSP page creates, sends, and receives BOD messages from the WebSphere Commerce Server.
The GetCatalogEntry controller JSP page then sends the Nouns from the BOD response to the serialization JSP fragments.
<?xml version="1.0" encoding="UTF-8"?> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <%@ taglib uri="http://commerce.ibm.com/foundation" prefix="wcf"%> <% // Use the get-data tag to invoke the expression which will find a // particular catalog entry by the identifier. %> <wcf:getData type="com.ibm.commerce.catalog.facade.datatypes.CatalogEntryType[]" var="catalogEntries" expressionBuilder="getCatalogEntryDetailsByIDs" varShowVerb="showVerb" recordSetStartNumber="${param.recordSetStartNumber}" recordSetReferenceId="${param.recordSetReferenceId}" maxItems="${param.maxItems}"> <wcf:contextData name="storeId" data="${param.storeId}" /> <wcf:contextData name="catalogId" data="${param.catalogId}" /> <wcf:contextData name="langId" data="${param.languageId}" /> <wcf:param name="UniqueID" value="${param.catentryId}" /> </wcf:getData> <c:if test="${!(empty catalogEntries)}"> <c:forEach var="catalogEntry" items="${catalogEntries}"> <% // For each returned catalog entry, convert it into the XML // representation Management Center expects. This is done // by calling a common serialization JSP fragment that is // used by all URLs that is returning the Management Center // version of the Catalog Entry noun. %> <jsp:directive.include file="serialize/SerializeCatalogEntry.jspf" /> </c:forEach> </c:if>
Related reference
Serialization JSP fragment example