title: How to get request url using spring controller?
body: <p>Actually i'm preparing Sending Activation mail to User Account and It is working but when he Accept the  mail Request will redirect to our application with secure encrypt key...</p>
  
  <p>In this way i'm preparing spring templete..</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>In User mail message like..</p>
  
  <pre><code>    Dear Narasimham
  
  Click *here* to activate your account.
  </code></pre>
  
  <p>So when we click Activation mail link in url coming like this..</p>
  
  <pre><code>http://localhost:8080/EClass/home?a=tdpTA3Dz8DYSI+9F/DpMxmxGD/a1Kl+3oYqXc1NNH0U=
  </code></pre>
  
  <p>So how to write controller getting this request parameter and how to decrypt this key?</p>
  
  <p>Actually i'm writing controller using <code>@RequestMapping(value="home", method=RequestMethod.GET)</code> ambiguity Exception comming because i'm using <code>value="home"</code> in two Controller classes..</p>
  
  <p>So how to write Controller using value <code>"home"</code> (hear home mean home .jsp)..</p>
  
  <p>Please suggest me..</p>