java - Can i use include directive in anchor tag? -


i want include content of jsp current jsp

 <a href="<jsp:include page="ans1.jsp">             <jsp:param name="q" value="<%=i+1%>"/>                   <jsp:param name="n<%=i%>" value="<%=rs2.getint(1)%>"/>         </jsp:include>">50-50</a> 

is correct way

you can use this.

 <%@include file="filename.jsp" %> 

Comments