title: jsp:useBean scope
body: <p>The JSP code is :</p>
  
  <pre><code>&lt;jsp:useBean id="person" class="org.example.model.PersonModel" scope="session"&gt;
  &lt;/jsp:useBean&gt;
  &lt;br&gt; Name : &lt;jsp:getProperty property="name" name="person"/&gt;
  &lt;br&gt; Surname : &lt;jsp:getProperty property="surname" name="person"/&gt;
  </code></pre>
  
  <p>Although I set java object in the <code>request</code> scope and not in the <code>session</code> scope in the Controller Servlet from where I am forwarding the request to this Servlet . How does the <code>&lt;jsp:useBean&gt;</code> gets hold of the request attribute although scope mentioned in the tag is session? If it uses <code>pageContext.findAttribute()</code> to get the attribute, then what is the use of having the scope attribute in that <code>&lt;jsp:useBean&gt;</code> tag ?</p>