Match Request VS Content URL in AEM-6.4

Avatar

Avatar

sunitac70336244

Avatar

sunitac70336244

sunitac70336244

03-07-2019

Dear All,

I have below requirement in my AEM-6.4

Step-1

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)

Step-2

I want to Extract plan id from my content path URL (My dummy content path is /content/VignetteContent , as shown below.)

1784124_pastedImage_5.png

Step-3

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?

Thanks

Sunita

View Entire Topic

Avatar

Avatar

sunitac70336244

Avatar

sunitac70336244

sunitac70336244

07-07-2019

Dear All,

My requirement is like below.

my-page is an AEM page while i need to pass 2 URL parameters as planID=197881 and locationID=1234 like below.

http://localhost:4502/my-page?planID=197881&locationID=1234

Can anybody please help me for any sample code

Thanks