Announcement Announcement Module
Collapse
No announcement yet.
jstl import Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • jstl import

    Hi, I'm trying to add simple import usage to my jsp pages. I've got menu.html (virtual url mapped to controller) and I'm trying to add it to index.html (which is also virtual url). <c:import url="menu.html" /> doesn't work.

    Help

  • #2
    <c:import url="menu.html" /> will import a real file, on disk. If you want to compose your pages from many dynamic elements, you need to have a look at a templating solution, like Tiles. Tiles does integrate well with Spring : http://static.springframework.org/sp...tml#view-tiles

    Comment


    • #3
      I also like Sitemesh ....

      http://www.opensymphony.com/sitemesh/

      Comment


      • #4
        Originally posted by nyte3k View Post
        I also like Sitemesh ....

        http://www.opensymphony.com/sitemesh/
        I am using Sitemesh also, but actucally Opensymphony seems no investment in these oneyears...their update still is 2006....

        Comment


        • #5
          Thanks for help, I'm reading about tiles and sitemesh now

          Comment


          • #6
            No need to update Sitemesh - works great as-is.

            %

            Comment

            Working...
            X