Passing path parameters in Servlet
Hello Community - I have a servlet which is registered with the path. I wanted to pass some path parameters in the servlet path like the below.
www.company.com/apps/test/product/value1/value2
I will invoke this servlet based on user action not based on resourceType. I am not able to retrieve the path parameters. I tried with the below. Is there any way to retrieve the values? Can someone tell me the way to retrieve the values?
req.getRequestPathInfo().getSuffix();
req.getResource().getPath();