Announcement Announcement Module
No announcement yet.
how to include view in another view Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

      Just add a slash to the page url:

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