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
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
The key empID has to match with the binding value of the newhire entities get service