Home > Articles > Programming > Java

This chapter is from the book

A Simple JavaServer Faces Application

This section describes the general steps involved in developing a simple JavaServer Faces application from the perspective of different development roles. These roles are:

  • Page author, who creates pages by using the JavaServer Faces tag libraries.
  • Application developer, who programs custom converters, validators, listeners, and backing beans.
  • Component author, who creates custom UI components and renderers.
  • Application architect, who configures the application, including defining the navigation rules, configuring custom objects, and creating deployment descriptors.

This application is quite simple, and so it does not include any custom components. See chapter 12 to learn about the responsibilities of a component writer.

Steps in the Development Process

Developing a simple JavaServer Faces application usually requires these tasks:

  • Mapping the FacesServlet instance.
  • Creating the pages using the UI component and core tags.
  • Defining page navigation in the application configuration resource file.
  • Developing the backing beans.
  • Adding managed bean declarations to the application configuration resource file.

The example used in this section is the guessNumber application, located in the <INSTALL>/javaeetutorial5/examples/web/ directory. It asks you to guess a number between 0 and 10, inclusive. The second page tells you whether you guessed correctly. The example also checks the validity of your input. The system log prints Duke's number. Figure 9–2 shows what the first page looks like.

Figure 9-2

Figure 9–2 The greeting.jsp Page of the guessNumber Application

The source for the guessNumber application is located in the <INSTALL>/javaeetutorial5/examples/web/guessNumber/ directory created when you unzip the tutorial bundle (see About the Examples, page xxxiv).

To build, package, deploy, and run this example using NetBeans 5.5, follow these steps:

  1. In NetBeans 5.5, select File→Open Project.
  2. In the Open Project dialog, navigate to:
    <INSTALL>/javaeetutorial5/examples/web/
  3. Select the guessNumber folder.
  4. Select the Open as Main Project checkbox.
  5. Click Open Project Folder.
  6. In the Projects tab, right-click the guessNumber project, and select Deploy Project.
  7. To run the application, open the URL http://localhost:8080/guessNumber in a browser.

To build, package, and deploy this example using ant, follow these steps:

  1. Go to <INSTALL>/javaeetutorial5/examples/web/guessNumber/.
  2. Run ant.
  3. Start the Application Server.
  4. Run ant deploy.
  5. To run the application, open the URL http://localhost:8080/guessNumber in a browser.

To learn how to configure the example, refer to the deployment descriptor (the web.xml file), which includes the following configurations:

  • A display-name element that specifies the name that tools use to identify the application.
  • A servlet element that identifies the FacesServlet instance.
  • A servlet-mapping element that maps FacesServlet to a URL pattern.

Mapping the FacesServlet Instance

All JavaServer Faces applications must include a mapping to the FacesServlet instance in their deployment descriptors. The FacesServlet instance accepts incoming requests, passes them to the life cycle for processing, and initializes resources. The following piece of the guessNumber example's deployment descriptor performs the mapping to the FacesServlet instance:

   <servlet>
     <display-name>FacesServlet</display-name>
     <servlet-name>FacesServlet</servlet-name>
     <servlet-class>javax.faces.webapp.FacesServlet
     </servlet-class>
     <load-on-startup>1</load-on-startup>
   </servlet>
   <servlet-mapping>
     <servlet-name>FacesServlet</servlet-name>
     <url-pattern>/guess/*</url-pattern>
   </servlet-mapping>

The mapping to FacesServlet shown above uses a prefix mapping to identify a JSP page as having JavaServer Faces components. Because of this, the URL to the first JSP page of the application must include the mapping. To accomplish this, the guessNumber example includes an HTML page that has the URL to the first JSP page:

   <a href="guess/greeting.jsp">

See Identifying the Servlet for Life Cycle Processing (page 483) for more information on how to map the FacesServlet instance.

Creating the Pages

Creating the pages is the page author's responsibility. This task involves laying out UI components on the pages, mapping the components to beans, and adding tags that register converters, validators, or listeners onto the components.

In this section we'll build the greeting.jsp page, the first page of the guessNumber application. As with any JSP page, you'll need to add the usual HTML and HEAD tags to the page:

   <HTML xmlns="http://www.w3.org/1999/xhtml"xml:lang="en">
     <HEAD> <title>Hello</title> </HEAD>
     ...
   </HTML>

You'll also need a page directive that specifies the content type:

   <%@ page contentType="application/xhtml+xml" %>

Declaring the Tag Libraries

In order to use JavaServer Faces components in JSP pages, you need to give your pages access to the two standard tag libraries, the HTML component tag library and the core tag library using taglib declarations:

   <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
   <%@ taglib uri="http:.//java.sun.com/jsf/core" prefix="f" %>

The first taglib declaration declares the HTML component tag library with a prefix, h. All component tags in the page have this prefix. The core tag library is declared with the prefix f. All core tags in the page have this prefix.

User Interface Component Model (page 291) includes a table that lists all the component tags included with JavaServer Faces technology. Adding UI Components to a Page Using the HTML Component Tags (page 326) discusses the tags in more detail.

Adding the view and form Tags

All JavaServer Faces pages are represented by a tree of components, called a view. The view tag represents the root of the view. All JavaServer Faces component tags must be inside of a view tag, which is defined in the core tag library.

The form tag represents an input form component, which allows the user to input some data and submit it to the server, usually by clicking a button. All UI component tags that represent editable components (such as text fields and menus) must be nested inside the form tag. In the case of the greeting.jsp page, some of the tags contained in the form are outputText, inputText, commandButton, and message. You can specify an ID for the form tag. This ID maps to the associated form UI component on the server.

With the view and form tags added, our page looks like this (minus the HTML and HEAD tags):

   <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
   <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
   <f:view>
     <h:form id="helloForm1">
     </h:form>
   </f:view>

Adding a Label Component

The outputText tag represents a label. The greeting.jsp page has two outputText tags. One of the tags displays the number 0. The other tag displays the number 10:

   <h:outputText lang="en_US"
      value="#{UserNumberBean.minimum}"/>
   <h:outputText value="#{UserNumberBean.maximum}"/>

The value attributes of the tags get the values from the minimum and maximum properties of UserNumberBean using value expressions, which are used to reference data stored in other objects, such as beans. See Backing Beans (page 304) for more information on value expressions.

With the addition of the outputText tags (along with some static text), the greeting page looks like the following:

   <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
   <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
   <f:view>
     <h:form id="helloForm1">
       <h2>Hi. My name is Duke. I'm thinking of a number from
       <h:outputText lang="en_US"
         value="#{UserNumberBean.minimum}"/> to
       <h:outputText value="#{UserNumberBean.maximum}"/>.
       Can you guess it?</h2>
     </h:form>
   </f:view>

Adding an Image

To display images on a page, you use the graphicImage tag. The url attribute of the tag specifies the path to the image file. Let's add Duke to the page using a graphicImage tag:

   <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
   <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
   <f:view>
      <h:form id="helloForm1">
        <h2>Hi. My name is Duke. I'm thinking of a number from
        <h:outputText lang="en_US"
           value="#{UserNumberBean.minimum}"/> to
        <h:outputText value="#{UserNumberBean.maximum}"/>.
        Can you guess it?</h2>
        <h:graphicImage id="waveImg" url="/wave.med.gif" />
     </h:form>
   </f:view>

Adding a Text Field

The inputText tag represents a text field component. In the guessNumber example, this text field takes an integer input value. The instance of this tag included in greeting.jsp has three attributes: id, label, and value.

   <h:inputText id="userNo" label="User Number"
       value="#{UserNumberBean.userNumber}">
       ...
   </h:inputText>

The id attribute corresponds to the ID of the component object represented by this tag. In this case, an id attribute is required because the message tag (which is used to display validation error messages) needs it to refer to the userNo component.

The label attribute specifies the name to be used by error messages to refer to the component. In this example, label is set to "User Number". As an example, if a user were to enter 23, the error message that would be displayed is:

   User Number: Validation Error: Value is greater than allowable
   maximum of 10.

The value attribute binds the userNo component value to the bean property UserNumberBean.userNumber, which holds the data entered into the text field.

After adding the inputText tag, the greeting page looks like the following:

   <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
   <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
   <f:view>
     <h:form id="helloForm1">
        <h2>Hi. My name is Duke. I'm thinking of a number from
        <h:outputText lang="en_US"
          value="#{UserNumberBean.minimum}"/> to
        <h:outputText value="#{UserNumberBean.maximum}"/>.
        Can you guess it?</h2>
        <h:graphicImage id="waveImg" url="/wave.med.gif" />
        <h:inputText id="userNo" label="User Number"
          value="#{UserNumberBean.userNumber}">
          ...
        </h:inputText>
     </h:form>
   </f:view>

See Backing Beans (page 304) for more information on creating beans, binding to bean properties, referencing bean methods, and configuring beans.

See Using Text Components (page 331) for more information on the inputText tag.

Registering a Validator on a Text Field

By nesting the validateLongRange tag within a text field's component's tag, the page author registers a LongRangeValidator onto the text field. This validator checks whether the component's local data is within a certain range, defined by the validateLongRange tag's minimum and maximum attributes.

In the case of the greeting page, we want to validate the number the user enters into the text field. So, we add a validateLongRange tag inside the inputText tag. The maximum and minimum attributes of the validateLongRange tag get their values from the minimum and maximum properties of UserNumberBean using the value expressions #{UserNumberBean.minimum} and #{UserNumberBean.maximum}. See Backing Beans (page 304) for details on value expressions.

After adding the validateLongRange tag, our page looks like this:

   <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
   <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
   <f:view>
     <h:form id="helloForm1">
        <h2>Hi. My name is Duke. I'm thinking of a number from
        <h:outputText lang="en_US"
           value="#{UserNumberBean.minimum}"/> to
        <h:outputText value="#{UserNumberBean.maximum}"/>.
        Can you guess it?</h2>
        <h:graphicImage id="waveImg" url="/wave.med.gif" />
        <h:inputText id="userNo" label="User Number"
           value="#{UserNumberBean.userNumber}">
             <f:validateLongRange
                minimum="#{UserNumberBean.minimum}"
                maximum="#{UserNumberBean.maximum}" />
        </h:inputText>
     </h:form>
   </f:view>

For more information on the standard validators included with JavaServer Faces technology, see Using the Standard Validators (page 369).

Adding a Custom Message

JavaServer Faces technology provides standard error messages that display on the page when conversion or validation fails. In some cases, you might need to override the standard message. For example, if a user were to enter a letter into the text field on greeting.jsp, he or she would see the following error message:

   User Number: 'm' must be a number between -2147483648 and
   2147483647 Example: 9346

This is wrong because the field really only accepts values from 0 through 10.

To override this message, you add a converterMessage attribute on the inputText tag. This attribute references the custom error message:

   <h:inputText id="userNo" label="User Number"
        value="#{UserNumberBean.userNumber}"
           converterMessage="#{ErrMsg.userNoConvert}">
   ...
   </h:inputText>

The expression that converterMessage uses references the userNoConvert key of the ErrMsg resource bundle. The application architect needs to define the message in the resource bundle and configure the resource bundle. See Configuring Error Messages (page 289) for more information on this.

See Referencing Error Messages (page 358) for more information on referencing error messages.

Adding a Button

The commandButton tag represents the button used to submit the data entered in the text field. The action attribute specifies an outcome that helps the navigation mechanism decide which page to open next. Defining Page Navigation (page 288) discusses this further.

With the addition of the commandButton tag, the greeting page looks like the following:

   <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
   <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
   <f:view>
     <h:form id="helloForm1">
       <h2>Hi. My name is Duke. I'm thinking of a number from
       <h:outputText lang="en_US"
          value="#{UserNumberBean.minimum}"/> to
       <h:outputText value="#{UserNumberBean.maximum}"/>.
       Can you guess it?</h2>
       <h:graphicImage id="waveImg" url="/wave.med.gif" />
       <h:inputText id="userNo" label="User Number"
          value="#{UserNumberBean.userNumber}">
            <f:validateLongRange
               minimum="#{UserNumberBean.minimum}"
               maximum="#{UserNumberBean.maximum}" />
       </h:inputText>
       <h:commandButton id="submit"
          action="success" value="Submit" />
    </h:form>
  </f:view>

See Using Command Components for Performing Actions and Navigation (page 337) for more information on the commandButton tag.

Displaying Error Messages

A message tag is used to display error messages on a page when data conversion or validation fails after the user submits the form. The message tag in greeting.jsp displays an error message if the data entered in the field does not comply with the rules specified by the LongRangeValidator implementation, whose tag is registered on the text field component.

The error message displays wherever you place the message tag on the page. The message tag's style attribute allows you to specify the formatting style for the message text. Its for attribute refers to the component whose value failed validation, in this case the userNo component represented by the inputText tag in the greeting.jsp page.

Let's put the message tag near the end of the page:

   <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
   <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
   <f:view>
     <h:form id="helloForm1">
       <h2>Hi. My name is Duke. I'm thinking of a number from
       <h:outputText lang="en_US"
          value="#{UserNumberBean.minimum}"/> to
       <h:outputText value="#{UserNumberBean.maximum}"/>.
       Can you guess it?</h2>
       <h:graphicImage id="waveImg" url="/wave.med.gif" />
       <h:inputText id="userNo" label="User Number"
          value="#{UserNumberBean.userNumber}"
          converterMessage="#{ErrMsg.userNoConvert}">
          <f:validateLongRange
               minimum="#{UserNumberBean.minimum}"
               maximum="#{UserNumberBean.maximum}" />
       </h:inputText>
       <h:commandButton id="submit"
          action="success" value="Submit" />
       <h:message showSummary="true" showDetail="false"
            style="color: red;
            font-family: 'New Century Schoolbook', serif;
            font-style: oblique;
            text-decoration: overline"
            id="errors1"
            for="userNo"/>
    </h:form>
  </f:view>

Now we've completed the greeting page. Assuming we've also done the response.jsp page, let's move on to defining the page navigation rules.

Defining Page Navigation

Defining page navigation involves determining which page to go to after the user clicks a button or a hyperlink. Navigation for the application is defined in the application configuration resource file using a powerful rule-based system. Here is one of the navigation rules defined for the guessNumber example:

   <navigation-rule>
     <from-view-id>/greeting.jsp</from-view-id>
     <navigation-case>
        <from-outcome>success</from-outcome>
        <to-view-id>/response.jsp</to-view-id>
     </navigation-case>
   </navigation-rule>
   <navigation-rule>
     <from-view-id>/response.jsp</from-view-id>
     <navigation-case>
        <from-outcome>success</from-outcome>
        <to-view-id>/greeting.jsp</to-view-id>
     </navigation-case>
   </navigation-rule>

This navigation rule states that when the button on the greeting page is clicked the application will navigate to response.jsp if the navigation system is given a logical outcome of success.

In the case of the Guess Number example, the logical outcome is defined by the action attribute of the UICommand component that submits the form:

   <h:commandButton id="submit" action="success"
     value="Submit" />

To learn more about how navigation works, see Navigation Model (page 302).

Configuring Error Messages

In case the standard error messages don't meet your needs, you can create new ones in resource bundles and configure the resource bundles in your application configuration resource file. The guessNumber example has one custom converter message, as described in Adding a Custom Message (page 285).

This message is stored in the resource bundle, ApplicationMessages.properties:

   userNoConvert=The value you entered is not a number.

The resource bundle is configured in the application configuration file:

   <application>
     <resource-bundle>
        <base-name>guessNumber.ApplicationMessages</base-name>
        <var>ErrMsg</var>
     </resource-bundle>
   </application>

The base-name element indicates the fully-qualified name of the resource bundle. The var element indicates the name by which page authors refer to the resource bundle with the expression language. Here is the inputText tag again:

   <h:inputText id="userNo" label="User Number"
     value="#{UserNumberBean.userNumber}"
       converterMessage="#{ErrMsg.userNoConvert}">
       ...
   </h:inputText>

The expression on the converterMessage attribute references the userNoConvert key of the ErrMsg resource bundle.

See Registering Custom Error Messages (page 470) for more information on configuring custom error messages.

Developing the Beans

Developing beans is one responsibility of the application developer. A typical JavaServer Faces application couples a backing bean with each page in the application. The backing bean defines properties and methods that are associated with the UI components used on the page.

The page author binds a component's value to a bean property using the component tag's value attribute to refer to the property. Recall that the userNo component on the greeting.jsp page references the userNumber property of UserNumberBean:

   <h:inputText id="userNo" label="User Number"
          value="#{UserNumberBean.userNumber}">
   ...
   </h:inputText>

Here is the userNumber backing bean property that maps to the data for the userNo component:

   Integer userNumber = null;
   ...
   public void setUserNumber(Integer user_number) {
     userNumber = user_number;
   }
   public Integer getUserNumber() {
     return userNumber;
   }
   public String getResponse() {
     if(userNumber != null &&
       userNumber.compareTo(randomInt) == 0) {
          return "Yay! You got it!";
     } else {
       return "Sorry, "+userNumber+" is incorrect.";
     }
   }

See Backing Beans (page 304) for more information on creating backing beans.

Adding Managed Bean Declarations

After developing the backing beans to be used in the application, you need to configure them in the application configuration resource file so that the JavaServer Faces implementation can automatically create new instances of the beans whenever they are needed.

The task of adding managed bean declarations to the application configuration resource file is the application architect's responsibility. Here is a managed bean declaration for UserNumberBean:

   <managed-bean>
     <managed-bean-name>UserNumberBean</managed-bean-name>
     <managed-bean-class>
        guessNumber.UserNumberBean
     </managed-bean-class>
     <managed-bean-scope>session</managed-bean-scope>
     <managed-property>
        <property-name>minimum</property-name>
        <property-class>long</property-class>
        <value>0</value>
     </managed-property>
     <managed-property>
        <property-name>maximum</property-name>
        <property-class>long</property-class>
        <value>10</value>
     </managed-property>
   </managed-bean>

This declaration configures UserNumberBean so that its minimum property is initialized to 0, its maximum property is initialized to 10, and it is added to session scope when it is created.

A page author can use the unified EL to access one of the bean's properties, like this:

   <h:outputText value="#{UserNumberBean.minimum}"/>

For more information on configuring beans, see Configuring a Bean (page 306).

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020