samedi 28 février 2015

I want to include a view in my .jsp page that is mapped by a spring controller. Here is the controller method:



@RequestMapping("/include/header")
public String showHeader() {
return "include/header";
}


And here is the include tag from the jsp page:



<jsp:include page="/include/header">


It works, but eclipse flags the above line with "Fragment "/include/header" was not found at expected path ..." . Is there a better way to do this that will make eclipse happy? I do want the header file to have its own controller method, otherwise I would just make it a static resource.


Thanks!


Aucun commentaire:

Enregistrer un commentaire