...

/

Passing Parameters with GET request

Passing Parameters with GET request

Learn how to pass parameters from the browser to the servlet with a GET request.

A parameter is something that is passed between the browser and the web server.

Passing a parameter in the URL

Suppose we want to pass the name of a tennis player as a parameter. The way to pass a parameter is to put a question mark at the end of the URL and provide the name of the parameter. The ? separates the URL from the parameter:

http://localhost:8080?name=sampras

Here, we are passing a parameter called ...

Access this course and 1400+ top-rated courses and projects.