Aziz Shaikh Aziz Shaikh - 1 year ago 98
jQuery Question

call an JSP Page inside my JSP Page with Parameter

I Have a main JSP page called Main.jsp

where from sidebar need to call a inner.jsp with a Parameters


<jsp:include page="inner.jsp" flush="true" />

but need to set parameter like

while clicking the link from sidebar menu as
<a onclick=''>test1</a>

Answer Source

You can use the <jsp:param> tag:

<jsp:include page="${page}">
<jsp:param value="${canale}" name="channel"/>

in the included page you may:

<c:if test='${not empty}' >
<input type='hidden' name='canale'  value="${}">
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download