You can code JSPs for a multisite application so they are sensitive to site context. Site context determines access to site-aware repository items, and especially to ATG Commerce product items, which are encoded with site context IDs. Site context can also affect component properties.

By default, a JSP executes within the current site context. You can encode a page—entirely or in portions—to switch site context. For example, a page that opens in one site context can temporarily switch site context for a specific portion of the page in order to display products from another site.

This chapter discusses the following page coding tasks:

Note: This chapter assumes that you are familiar with multisite requirements, architecture, and terminology. For more information, see: