Display All Request Scope Parameters And Model Attributes Inside JSP Page
Reference: https://www.stackextend.com/java/jstl-display-all-request-scope-parameters-and-model-attributes-inside-jsp-page/
So the Following trick gives you the ability to display all request scope parameters and model attributes inside JSP page by adding this simple code :
<ul>
<c:forEach items="${requestScope}" var="p">
<li>${p.key} -> ${p.value}</li>
</c:forEach>
</ul>
After refreshing the page you will see all parameters displayed with their values.
Comments
Post a Comment