Develop > Presentation layer > Work with Web service feeds > Feed formatting JSP files for Atom feeds


Example of a wish list Atom feed rendered in a remote widget

An Atom feed for a wish list provides data about catalog entries for display in a remote widget.

To customize the feed formatting JSP files for the Atom feed, understand how the XML elements in the JSP files map to the text and images a customer sees in the remote widget.

This example shows wish list remote widget created in KickApps App Studio using a WebSphere Commerce template. The template specifies which elements from the feed to display. The numbered callouts in the screen capture show the data coming from the Atom feed. The text and images that are above and below the feed data are editable parts of the widget template.

The WebSphere Commerce remote widget templates do not use the Atom standard <content> element in the feed formatting JSP file to display each feed entry. Instead, the templates use Atom extension elements that are also provided in the feed formatting JSP file. These extension elements provide more granular feed entry data for display in Flash widgets. This makes it easier to edit and rearrange the data in the widget. If you are customizing a feed formatting JSP file to add an additional piece of data from the wish list to a feed for a remote widget, add a new Atom extension element.

Feed data Type of data Atom element Feed formatting JSP fragment
 1  Wish list name <title> SerializeGiftListDataAtom.jspf
 2  Catalog entry thumbnail image Atom extension element:

<thumbnail>

SerializeGiftListDataCatalogEntryAtom.jspf
 3  Catalog entry name Atom extension element:

<name>

 4  Catalog entry offer (standard) price Atom extension element:

<price>

 


+

Search Tips   |   Advanced Search