Results 1 to 6 of 6

Thread: jstl import

  1. #1
    Join Date
    Aug 2007
    Posts
    26

    Default 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. #2
    Join Date
    Jul 2005
    Location
    Geneva (Switzerland)
    Posts
    304

    Default

    <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

  3. #3
    Join Date
    Sep 2007
    Location
    Atlanta, Ga
    Posts
    30

    Default

    I also like Sitemesh ....

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

  4. #4
    Join Date
    Sep 2007
    Posts
    23

    Default

    Quote 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....

  5. #5
    Join Date
    Aug 2007
    Posts
    26

    Default

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

  6. #6
    Join Date
    May 2005
    Posts
    208

    Default

    No need to update Sitemesh - works great as-is.

    %

Posting Permissions

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