You can take the properties of Window.Location in JS, such as this URL: http: // localhost: 8099 / landy / media / inIitSinger.do? Id = 84
window.location.href = http: // localhost: 8099 / landy / media / initEditSinger.do id = 84window.location.protocol = http:? window.location.host = localhost: 8099window.location.hostname = localhostwindow.location. Port = 8099window.location.pathname = /landy/media/initeditsinger.dowindow.location.search =? id = 84 can be taken in the servlet method, or the URL above:
Request.getServerName () = localhostRequest.getServerPort () = 8099Request.getRequesturi () = /landy/media/initaddsinger.dorequest.getQuerySTRING () = ID = 84