Get request parameter

Get empID parameter

The next step is to access the empID parameter from the url. The value of empID request parameter is then passed to the get service operation of the form data model.
For the purpose of this course we have created and provided the following

  • Adaptive form Template called FDMDemo
  • Page Component called fdmdemo
  • Included our custom jsp with the page component
  • Associated the adaptive form template with the page component

By doing this our code in the custom jsp will only be executed when adaptive form based on this custom template is rendered


if(request.getParameter("empID")!=null)
    {
      //System.out.println("Adobe !!!There is a empID parameter in the request "+request.getParameter("empID"));
      //java.util.Map paraMap = new java.util.HashMap();
      //paraMap.put("empID",request.getParameter("empID"));
      //slingRequest.setAttribute("paramMap",paraMap);
    }

The value of empID is associated with key called empID in paraMap. This map is then passed to the slingRequest

NOTE
The key empID has to match with the binding value of the newhire entities get service

Next Steps

Create an Adaptive Form based on Form Data Model

recommendation-more-help
8de24117-1378-413c-a581-01e660b7163e