Skip to Main Content

include directive and jsp:include action tag

935578Mar 22 2013
i made a page that call the simple printdate.jsp once using include directive and another time by using jsp:include
<%= new java.util.Date() %>
<% response.setHeader("refresh","1"); %>
with the include directive the time i got is the clock change time every sec and with action tag its not changning question i read on tutorial that with the include directive jsp page translated only once so its batter to include static page and with the action tag use dynamic page.but i things its happening opposite in my case.dont know the much difference in these two.can somebody explain me the reason ?
sorry for this noob question
Post Details
Locked due to inactivity on Apr 19 2013
Added on Mar 22 2013