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

When data is sent from the WebSphere Commerce Server to the Management Center, the Management Center Web application transforms Nouns into the XML representation that is expected by the Management Center. The JSP file that represents the Struts action forward is used to transform Nouns into XML format.

The following types of JSP pages are used to transform WebSphere Commerce services Nouns into XML format:


Add more data using the built-in UserData support

If you customized the Management Center to add UserData into your Noun, the serialization JSP fragments that are ready for you to use without modification ensure that this user data is transformed into the Management Center object. The following code snippet shows the structure of UserData:

<c:forEach var="userDataField" items="${catalogEntry.description.attributes}"> 
<xattr_${userDataField.typedKey}>${userDataField.typedValue}</xattr_ ${userDataField.typedKey}>
</c:forEach>

Management Center objects that correspond to information in a UserData element must use the naming convention of xattr_name, where name is the name attribute of the value and the property value is the value. When the change or process URL request is initiated, the configured UserData element that is associated with xattr is populated appropriately. For example, the UserData Noun might be xattr_WarrantyTerms. For more information about User Data, see Add data to an existing Management Center object.


Notes

The XML format and JSP files have the following characteristics:


Examples

The following examples are JSP files and the output XML format that are generated during a Noun to XML transformation:


Related tasks

Define retrieval services for a custom Management Center object

Add data to an existing Management Center object


+

Search Tips   |   Advanced Search