title: How request mapping is done in magnolia blossom?
body: <p>This is the following Controller code I have: </p>
  
  <pre><code> package com.newposition.templates.components;
  
   import javax.jcr.Node;
   import javax.servlet.http.HttpServletRequest;
   import javax.validation.Valid;
  
   import info.magnolia.module.blossom.annotation.Template;
  
   import org.springframework.beans.factory.annotation.Autowired;
   import org.springframework.stereotype.Controller;
   import org.springframework.util.StringUtils;
   .......
   .......
  
  @Controller
  @Template(title = "Login Form", id = "newPositionModule:components/login")
  public class LoginFormComponent {
  @Autowired
  private LoginServiceImpl loginServiceImpl;
  /*@RequestMapping(value = { "/", "/welcome**" }, method = RequestMethod.GET)
  public String defaultPage() {
  
      ModelAndView model = new ModelAndView();
      model.addObject("title", "Spring Security + Hibernate Example");
      model.addObject("message", "This is default page!");
      model.setViewName("home");
      return "components/loginSucess.jsp";
  
  }*/
  
  @RequestMapping(value = "/login", method = RequestMethod.GET)
  public String render(@ModelAttribute LoginForm loginForm,HttpServletRequest request) {
      return "components/loginForm.jsp";
  }
  
  @RequestMapping(value = "/login", method = RequestMethod.POST)
  public ModelAndView rendering( @ModelAttribute("loginForm") @Valid LoginForm loginForm,BindingResult result,HttpServletRequest request) {
      String viewName = "";
      String user=loginServiceImpl.verifyLogin(loginForm);
        if(user!=null)
        {
            request.getSession().setAttribute("valid", true);
            request.getSession().setAttribute("user", user);
            request.getSession().setAttribute("authenticate", false);
            viewName = "components/loginSucess.jsp";
            return  new ModelAndView(viewName);
        }
        else{
            request.getSession().setAttribute("authenticate", true);
            viewName = "components/loginForm.jsp";
            return  new ModelAndView(viewName);
        }
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>This the following Jsp: </p>
  
  <pre><code>&lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%&gt;
   &lt;%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%&gt;
   &lt;%@ taglib
  uri="http://magnolia-cms.com/taglib/templating-components/cms"
  prefix="cms"%&gt;
  &lt;%@ taglib
  uri="http://magnolia-cms.com/taglib/templating-components/cmsfn"
  prefix="cmsfn"%&gt;
  &lt;%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%&gt;
  &lt;%@ taglib uri="blossom-taglib" prefix="blossom"%&gt;
  
  
  &lt;c:if test="${authenticate}"&gt;
  &lt;b style="color:red; margin-left:560px" align="center"&gt;Please Enter a Valid Credentials&lt;/b&gt;
   &lt;/c:if&gt; 
  &lt;form:form id="loginform" action="?" commandName="loginForm" method="POST"&gt;
  &lt;blossom:pecid-input /&gt;
  &lt;div class="container"&gt;
      &lt;ul class="login_box"&gt;
          &lt;li&gt;
              &lt;div class="form-group"&gt;
                  &lt;form:input path="firstName" id="username" placeholder="Username"  class="form-control"/&gt;
              &lt;/div&gt;
              &lt;div class="form-group"&gt;
                  &lt;form:password path="password" id="password" placeholder="Password"  class="form-control"/&gt;
              &lt;/div&gt;
              &lt;div class="form-group"&gt;
                  &lt;button class="lgn_btn" type="submit" onsubmit="return validateForm()"&gt;Login&lt;/button&gt;
              &lt;/div&gt;
              &lt;hr&gt;
              &lt;div class="form-group"&gt;
                  &lt;button class="lgn_btn" type="submit"&gt;Register as a new
                      user&lt;/button&gt;
              &lt;/div&gt;
              &lt;a href='resetpassword'&gt;&lt;button class="lgn_btn" type="button"&gt;Reset password&lt;/button&gt;&lt;/a&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/form:form&gt;
  </code></pre>
  
  <p>when the form is submitted request is going to above controller post method.</p>
  
  <p>In the jsp there is "form action="?" "</p>
  
  <p>So how it is mapping to that particular controller method.</p>
  
  <p>Please suggest.</p>