I try to include page in JSP with out.println()
inside <% ... %>
, but it doesn't include successfully.
I must use <% ... %>
because some restrictions such as looping. Does anybody have idea about this or another way to succeed in include pages? I point out my sample case as below.
<%
for (int i = 1; i < strVoCardList.length; i++) {
String strUserID = strVoCardList[i][1];
out.println("<jsp:include page='../include/include_Notification_Bar.jsp' >");
out.println("<jsp:param name = 'strUserID' value = \""+strUserID+"'/>");
out.println("<jsp:param name = 'strSubElementID' value = '"+i+3+"'/>");
out.println("</jsp:include>");
}
%>