JSP programming best practice: Use the StoreErrorDataBean data bean for error handling

To display store-specific error messages in JSP pages, use the StoreErrorDataBean data bean.

This data bean provides getter methods to:

In mapping error codes to error messages, the StoreErrorDataBean data bean relies on the existence of the store error message properties file, storeErrorMessages_ locale.properties, in the following directory:

The store error message properties file should contain error message definitions, such as the following:

The following is an example of the StoreErrorDataBean use:


Related concepts
JSP page error handling
Command error handling
WebSphere Commerce data beans
WebSphere Commerce framework overview


Related reference
JSP programming best practice: Use the Commerce-specific tag for bean activation
WebSphere Commerce JSP programming best practices