At the breakpoint, simply check the HttpServletRequest property of the JspContext instance, and then check its parameterMap property.
Or make it a poor person by simply printing them all in the JSP:
<c:forEach items="${param}" var="p"> Param: ${p.key}= <c:forEach items="${p.value}" var="v" varStatus="loop"> ${v}${loop.last ? '<br>' : ','} </c:forEach> </c:forEach>
However, you are usually interested in them inside the servlet class, and not inside the JSP. This would mean that you are doing some kind of business logic inside a JSP file using scriptlets. This is considered bad practice. Do not do this and move this raw Java code to real Java classes until it is too late. Use JSP for presentation only. You can use taglib, such as JSTL, to control the flow of pages and use EL to access data on the server.
source share