Sign in to Community
Sign in to view all badges
I have below requirement in my AEM-6.4
Extract plan id from cookie/session/http header (I want to write a dummy request for now For example I should get PlanId value as 197881 from cookie/session/http header)
I want to Extract plan id from my content path URL (My dummy content path is /content/VignetteContent , as shown below.)
If plan ID match (request vs content URL) then Continue Otherwise Reject.
Can anybody let me know how can I do this one in AEM-6.4?
I am not sure what is your requirement but you can try with setAttribute if possible
String planId = request.getAttribute("planID");
String locationId = request.getAttribute("locationId");
You can add Query String in the url like below
String planid = request.getParameter("planId");
String planid = request.getParameter(
String locationId = request.getParameter("locationId");
String locationId = request.getParameter(