What is URL rewriting?
In URL rewriting, add the perimeters in the url or we append a token or identifier to the URL of the next Servlet or the next page like action page of form or next resource. We can send parameter name/value pairs using the following format given below:
r4r.in/?nm1=val1&nm2=val2&nm3=val3&???
A name and a value is separated using an equal = sign, a parameter name/value pair is separated from another parameter using the ampersand(&). When the user clicks the hyperlink, the parameter name/value pairs will be passed to the server.
We can use getParameter() method to obtain a parameter value or the servlet.
Read More →