title: Jsp Include File Directive with Variable FileName in Spring MVC
body: <p>I  have passed filename using ModelAndView object in my spring mvc application. But am unable to fix this compilation issue. Im new to WEB-Development.</p>
  
  <p>Following is content of my jsp page. </p>
  
  <pre><code>&lt;% String pageRed = "static/" + (String)request.getAttribute("redPage"); %&gt;
  &lt;%@ include file="&lt;%=pageRed %&gt;" %&gt; 
  </code></pre>
  
  <p>Include File Line gives the following error </p>
  
  <pre><code>Multiple annotations found at this line:
      - Start tag (&lt;jsp:directive.include&gt;) not closed properly, expected '&gt;'.
      - A file value is required in this directive
      - Invalid location of text ("&lt;%=pageRed %&gt;" %) in tag 
       (&lt;jsp:directive.include&gt;).
  </code></pre>
  
  <p>Any idea  ? </p>