Changing store pages
The JSP pages that are provided with the consumer direct sample store can be changed. The Registration page is used as an example, but the same methods can be applied to other pages.
Some of the most commonly used data beans and commands in the consumer direct sample store are listed below:
- StoreErrorDataBean
- Communicates error information to a JSP page.
- StoreDataBean
- Contains store-specific information, such as the store identifier and catalog identifier for the store.
- OrderDataBean
- Represents an order.
- UserRegistrationDataBean
- Represents the registration information for a member.
- ProductDataBean
- Represents a product and all of its attributes.
Many form elements in the consumer direct sample store use the ECUserConstants class. This class contains constants that specify the name of a form element, for example:
<input size="25" maxlength="50"
names="firstName"
type="text" value="<c:out value="$(firstname)"/>">
The Registration page allows customers
to register at the store. When customers register, they must provide
their First Name, Last Name,
a Logon ID, and an email address, and then
create a password; these fields are required. Additionally, the Registration page
might
display the following optional fields:
- Preferred language
- Preferred currency
- Age
- Gender
- Send me email about store specials
Note: These fields can be removed
through the Change Flow notebook.