<% @ include file = "file.suffix"%> can not include dynamic content, such as this: <% @ include file = "<% = some%>"%>, because it is introduced when compiling on the page So you can't include the content of the running period