Originally posted by Srividhya Kiran:
which jsp code would you use to include a static content in a jsp?
1. <%@ include file ="/footer.html" %>
2. <jsp:include page="/footer.html/>
Both 1 & 2 are correct. I think option 2 is for dynamic content. So option 2 should be wrong answer right?
Srividhya
Since the file to be included in both the cases are html, option 1 and 2 are correct. Because in html there is no dynamic content.
[ August 11, 2008: Message edited by: prasanna perumal ]