2

i want include content of another jsp into my 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 it correct way

karnakar
  • 21
  • 1
  • Check this response http://stackoverflow.com/questions/9110148/include-another-jsp-file. You don't need to use the 'href ' – Jorge Apr 06 '16 at 12:30

1 Answers1

0

You can use this.

 <%@include file="filename.jsp" %>
Husen
  • 1,541
  • 10
  • 14