Aziz Shaikh Aziz Shaikh - 2 months ago 21
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

used

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


but need to set parameter like
inner.jsp?id=''_&tableID=''


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

Answer

You can use the <jsp:param> tag:

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

in the included page you may:

<c:if test='${not empty param.channel}' >
<input type='hidden' name='canale'  value="${param.channel}">
</c:if>
Comments