title: want to use jsp:include.. but the jsp is returned through spring controller(view resolver)
body: <p>I revised my question.</p>
  
  <p>(index.jsp, willwork.jsp ,WillWorkcontroller.java, another controller)</p>
  
  <p>I have a Spring controller that returns a JSP through view resolver.
  (I mean.. move from coltroller to jsp)
  and I want to include willwork.jsp in main jsp</p>
  
  <p>However, willwork.jsp has to be returned through controller!
  so I don't know how to use  in index.jsp</p>
  
  <p>here is my code</p>
  
  <p>main jsp -> in contextPath
  <code>
  &lt;div class ="contents"&gt;
          &lt;jsp:include page="${page}".jsp flush="false"&gt;&lt;/jsp:include&gt; //it's wrong
  &lt;/div&gt;</code></p>
  
  <p>WillWork.java(contoller) -> package name : com.we2.willwork</p>
  
  <pre><code>@Controller
  public class WillWorkController {
  
      private WillWorkDAO2 willWorkDAO;
      public void setWillWorkDAO(WillWorkDAO2 willWorkDAO) {
          this.willWorkDAO = willWorkDAO;
      }
  
      @RequestMapping(value="/willwork", method=RequestMethod.GET)
      public String initGet(Model model) throws ParseException{
      List&lt;WillWorkVO&gt; results = willWorkDAO.selectAll(); ...return "/WillWork/WillWork";
  </code></pre>
  
  <p>Willwork.jsp -> in WillWork folder</p>
  
  <pre><code>another controller! -&gt; it returns main page and include page that will be included
  
  @RequestMapping(value="/mailtest", method=RequestMethod.GET)
  public String pjt(Model model, String category) {
      model.addAttribute("page1","../WillWork/WillWork.jsp");
      return "myproject/myproject";
  }
  </code></pre>