Readme for the attributesDemo Sample

This sample (located at \samples\attributesDemo) is a JSP application built using the Attributes library of the eBay SDK for Java. This sample is similar to the Sell Your Item flow on the eBay site. This sample is for demonstration purposes only. If memory issues occur in your webserver, please refer to your webserver documentation for how to increase the Java heap size.

This sample shows how to store attributes and then add them to an item and list the item.

Preparation for Building the Sample

Confirm that the settings are correct in %TOMCAT_HOME%, %JAVA_HOME%, and \samples\attributesDemo\build.xml. Note that by default, tomcat.home is set to %TOMCAT_HOME%. If the project is built successfully, a WAR file is ready for deployment.

Before using the steps in the next section:

  1. Shut down Apache Tomcat.
  2. Delete previous versions of the following directory: %TOMCAT_HOME%\webapps\AttributesDemo.
  3. Delete %TOMCAT_HOME%\webapps\AttributesDemo.war.
  4. Delete the contents of %TOMCAT_HOME%\work.

Build the Sample and Copy the WAR File

  1. Add your DevID, a server URL, etc., to \samples\attributesDemo\AttributesDemo\WEB-INF\web.xml (see the web.xml file for the values you need to provide).
  2. Follow the directions in ...\samples\readme.htm to build the sample.
  3. Copy the resulting WAR file (...\samples\attributesDemo\AttributesDemo.war) to %TOMCAT_HOME%\webapps\AttributesDemo.war.

Start Tomcat and Run the Sample to List an Item

  1. Start Apache Tomcat.
  2. Confirm that the following folder is created: %TOMCAT_HOME%\webapps\AttributesDemo.
  3. Use the following address in your browser: http://localhost:8080/AttributesDemo/selectSite.jsp.
  4. Choose the Canada site (as a test), optionally specify a category ID, and click Continue.
  5. Confirm that the category and attribute data was saved under %TOMCAT_HOME% or a subdirectory of %TOMCAT_HOME% (unless you already have a current version of the data).
  6. On the categoryList.jsp page, two columns of categories are displayed. You can select two categories for your item, just as a seller does when the seller lists an item. Select two categories and click Continue.
  7. On the attributesInfo.jsp page, attributes are displayed that correspond to the categories you selected. Select attributes and click Continue.
  8. On the addItem.jsp page, add other options as desired and click List Item to eBay.
  9. The View Item page for your item is displayed. Confirm that the attributes you selected are on the View Item page.