<p>I'm getting this error:</p>

<pre><code>javax.servlet.ServletException: bean not found within scope
</code></pre>

<p>on a page with this at the top.</p>

<pre class="lang-html prettyprint-override"><code>&lt;jsp:useBean id="bean" type="com.example.Bean" scope="request" /&gt;
</code></pre>

<p>The class exists in the classpath, it worked this morning, and I don't get what not found within scope means.</p>

<p>How is this caused and how can I solve it?</p>

You must add
```
```
<jsp:useBean id="givingFormBean" type="some.packg.GivingForm" scope="request" />
```
```
Because by default the bean is
looked on the
page
scope