My servlet is mapped with <url-pattern> /controller/*/* </url-pattern>
my url is like this controller/12341/ABC123
will always like this but values can be changed.
I am trying to get value of first *
and second *
which presents serial & mac
I write following code but it return only last part ACB123
String mac= request.getPathInfo().replace("/", "");
How can I get both vaules?