i have learned jsp native, i want to include dynamic file. i want to call dynamic page using include
this code
<% String p = request.getParameter("p"); %>
<%@ include file="pages/"+p+".jsp" %>
if i type dashboard.jsp?p=about the page open "pages/about.jsp"
if i type dashboard.jsp?p=product the page open "pages/product .jsp"
in php this script like this
$p= $_GET['p'];
include(pages/'.$p.'.php');