title: Bean setProperty
body: <p>Hello everybody :)
  I have misunderstanging in setPropety in using Bean ?
  when I make like this</p>
  
  <pre><code> &lt;jsp:setProperty name="myBean" property="*"&gt;
  </code></pre>
  
  <p>I have to make the field names of the form the same as attribute names in myBean
  in order to make match between values is HTTPRequest and the attributes of myBean,
  if I use onther names in the form fields, values are reached null values.
  but If I ever want to use the form values in the same jsp page , and define Bean that holds the values of the form, it doesn't make sence if I use other names in the form fields rather than the same name of bean attributes !! why is that ??</p>
  
  <p>see here,  the name of password field is "password" , and the name of attribute of myBean is pass, and even that it works !</p>
  
  <pre><code>//index.jsp page
  &lt;form method="post" action="index.jsp"&gt;
          Enter Your email:&lt;input type="text" name="email"/&gt;
          &lt;br/&gt;
          Enter Your Password :&lt;input type="password" name ="pass"&gt;
           &lt;br/&gt;
          &lt;input type="submit" name ="submit"/&gt;
      &lt;/form&gt;
  
      &lt;jsp:useBean id="info" class="beans.info" scope="page"&gt;
          &lt;jsp:setProperty name="info" property="*"/&gt;
      &lt;/jsp:useBean&gt;
          Your email is : &lt;jsp:getProperty name="info" property="email"/&gt;
            &lt;br/&gt;
           Your Pass is : &lt;jsp:getProperty name="info" property="pass"/&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>can some one tell me what has happened?</p>
  
  <p>Edit: I make modification to the code.</p>