Results 1 to 3 of 3

Thread: how to include view in another view

  1. #1
    Join Date
    May 2006
    Posts
    4

    Default how to include view in another view

    I have a view hours.htm which has its own controller.

    I want to load another view inside it:
    <jsp:include page="menu.htm" flush="true" />

    menu.htm has its own controller.

    but it does not work.

    how can I do it?

  2. #2
    Join Date
    Jan 2008
    Posts
    3

    Default

    Hello all.

    I'm new to Spring, and I'm looking for an answer to this same problem.

    In my particular situation, when I include (using the example in the previous post) "menu.jsp", everything works fine. If I include the reference to the spring-mapped view, however, "menu.htm", I get a completely blank page in the browser, and no information about what happened in the logs.

    Any info, even a pointer to a specific section of the documentation, would be helpful.

    I have read all of chapter 13 to no avail, and lots of looking has turned up no good indication of what might be going wrong.

    Thanks to all.

  3. #3
    Join Date
    May 2006
    Posts
    4

    Default fix

    Just add a slash to the page url:

    <jsp:include page="/menu.htm" flush="true"/>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •