Lets say you have a link on your
JSP page/menu and on clicking this url is called
http://localhost:7281/myapplication.do?dispatch=goToEmpPage&deptId=12
then If you do request.getQueryString(); result should be:
dispatch=goToEmpPage&deptId=12
and If you do request.getRequestURI(); in the JSP result should be:
/jsp/common/main.jsp
The page uri from where the link was clicked.