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

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -