i want to implement a view structure like explained in the following. First my view pages directory structure shall look / looks like this:
My central view accesspoint shall be index.jsp. There I'd like to define some standard layout (divs for headers, footers, main navigation... ) and a content div, where the actually destination jsp shall be included.
So a call to /myApp/login.htm shall lead to index.jsp rendered with loginForm.jsp included in the content div.
My Mainproblem is, that ever tutorial i can find, works with resolving view names directly to jsps. I can hardly imagine how to build a standard layout that way, without including at least references to headers and footers in EVERY single view page .
Furthermore including a view located in WEB-INF/secure/ shall be intercepted with an AuthenticationInterceptor to check, wether a user is logged in or not. Once again the same problem...
I'd be glad if anyone could give a hint to solve that problem or could give ideas how to specify mainlayout in a single file using the "normal" way of resolving views