title: How to map Request parameter in Spring?
body: <p>I'm using spring MVC. When user have registered, an email will be send to User Account.</p>
  
  <p>That is working fine .. and i'm also sending user id encrypted to User email and for that i wrote a template ..</p>
  
  <pre><code>&lt;bean id="activateAccountTemplate" class="org.springframework.mail.SimpleMailMessage"&gt;
      &lt;property name="subject" value="Account activation" /&gt;
      &lt;property name="text"&gt;
          &lt;value&gt;
          &lt;![CDATA[
              &lt;html&gt;&lt;body&gt;&lt;p&gt;Dear %s&lt;/p&gt;&lt;p&gt;Click &lt;a href="http://localhost:8080/EClass/home?a=%s"&gt;here&lt;/a&gt; to activate your account.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;
          ]]&gt;
          &lt;/value&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>When ever User get email and click to activate... Url coming like this..</p>
  
  <pre><code>http://localhost:8080/EClass/home?a=tdpTA3Dz8DYSI+9F/DpMxmxGD/a1Kl+3oYqXc1NNH0U=
  </code></pre>
  
  <p>And i want to get this encrypted userid and for this i'm writing method..</p>
  
  <pre><code>    @Controller
  public class HomeController {
  
      @RequestMapping(value="home", method=RequestMethod.GET)
      public String home(Model model) throws Exception {
          model.addAttribute(FormType.LOGIN.name(), FormType.LOGIN.getNewInstance());
          model.addAttribute(FormType.SIGNUP.name(), FormType.SIGNUP.getNewInstance());
          return "home";
      }
  
      @RequestMapping(value="active", method=RequestMethod.GET)
      public String active(@RequestParam("a") String activeCode) throws Exception {
  
          String userid = CryptUtil.decrypt(activeCode);
          System.out.println("User id Displayed ===="+userid);
          return "home";
      }   
  }
  </code></pre>
  
  <p>But nothing happen on server console...
  Basically i want to get userid and using userid update User column <code>Activate=Yes</code>..</p>
  
  <p>Please suggest me..</p>