Question

Accenture
IN
Last activity: 20 Jul 2017 11:42 EDT
Get User Identifier before login
Hi ,
In our project there is a requirement where we need to get the username as a parameter on submission of login page. even if it is failed login we still need to get the user name which needs to be passed for an activity which is called from web-login HTML.We are using Pega 7.2 version and I have tried the below solutions but none helped
1.Tried to pass the user identifier like below while calling activity
pp.putString("UserID",tools.getParamValue("UserIdentifier") )
2.Used the below code in java step of an activity called from web-login
javax.servlet.http.HttpServletRequest request = (javax.servlet.http.HttpServletRequest) tools.getRequestor().getRequestorPage().getObject("pxHTTPServletRequest");
userid = request.getParameter("UserIdentifier");.
3.Tried to document the cookie and get value from cookie in a local property.
Appreciate your help..!!!
***Updated by moderator: Lochan to add Categories***