I'm having issue in fetching the value from the url eg:xyz.com/customer/1001. Here 1001 is the customer Id and I'm using the following command to get the value on the jsp :
long customerId = Long.valueOf(ParamUtil.getString(request,"customerId"));
Using the above code it gives me null as the value of customerId even though it is present in the url.
Thanks in advance
ParamUtil.getStringmethod have two argumentsgetString(javax.servlet.http.HttpServletRequest request, String param)as you can see the second argument is "param". To get value of this parameter, the url have to contains this parameter so you can try to access this urlxyz.com/customer?customerId=1001