title: Accessing Bean set in one JSP in another JSP
body: <p>The following is the code i'm using.</p>
  
  <p>1: LoginPage.jsp</p>
  
  <pre><code>    &lt;jsp:useBean id="checkBean" class="NewPack.Member" scope="request" /&gt;
      &lt;jsp:setProperty name="checkBean" property="username"    value="checkProp" /&gt; 
      &lt;form name="login" method="post"  action="webpages/Result.jsp" scope="request"&gt;
          username:&lt;input type="text" name="username"&gt;
          &lt;br/&gt;
          password:&lt;input type="password" name="password" &gt;            
          &lt;br/&gt;
          &lt;input type="submit" value="login"&gt;            
      &lt;/form&gt;
  </code></pre>
  
  <p>2: Result.jsp</p>
  
  <pre><code>&lt;jsp:useBean id="checkBean" class="NewPack.Member" scope="request" /&gt;        
  ${checkBean.username}
  </code></pre>
  
  <p>3: NewPack.Member is a simple java bean with two properties
     <strong>String username,password</strong>
     and the corresponding setters and getters.</p>
  
  <p>I'm setting the bean before the form element and in the request scope in LoginPage.jsp however while accessing it in Result.jsp I am not getting the values of the set property.</p>
  
  <p>PS: form has been included deliberately so as to pass the control to Result.jsp. The form inputs will be used to conduct further validations which are not connected to the Member bean.</p>