---
schema_version: "1"
id: fd7f355b0c50be544af242275c6fd9d77848225b617d2b6c3c44495a82b2abab
title: Associating a Standard List Controller with a Visualforce Page
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/salesforce-pages-developers-guide/guides/pages/controller-std/pages-controller-sosc-associate.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-pages-developers-guide/guide/pages-controller-sosc-associate.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 18e424b51942959125d82a42e50f4192f44110fa5bbc66cd183aeef8290a0b23
products:
  - Visualforce Developer Guide
  - Platform Developer Content
---

# Associating a Standard List Controller with a Visualforce Page

Using a standard list controller is very similar to using a standard controller. First you set the `standardController` attribute on the `<apex:page>` component, then you set the `recordSetVar` attribute on the same component.

For example, to associate a page with the standard list controller for accounts, use the following markup:

```visualforce
<apex:page standardController="Account" recordSetVar="accounts">
```

**note:** When you use the `standardController` attribute on the `<apex:page>` tag, you can’t use the `controller` attribute at the same time.

The `recordSetVar` attribute not only indicates that the page uses a list controller, it sets the variable name of the record collection. This variable can be used to access data in the record collection.

