<h2id="_adding_setter_and_getter_methods">Adding Setter and Getter Methods</h2>
<divclass="sectionbody">
<divclass="paragraph">
<p>To make the state of the managed bean accessible, add setter and getter methods for that state. The <code>createSalutation</code> method calls the bean’s <code>greet</code> method, and the
<code>getSalutation</code> method retrieves the result.</p>
</div>
<divclass="paragraph">
<p>Once the setter and getter methods have been added, the bean is