java - Accessing REST request path parameters in servlet -
i have written rest web service .
i trying path parameters of the request in httpservlet.
my request is
/api/test/{name}/{city}
how can access value name , city?
public class simplehttpserver extends httpservlet { @override public void doget( httpservletrequest request, httpservletresponse response ) throws ioexception { //how can access value name , city } }
wiki
Comments
Post a Comment