View Full Version : jstl import
zeeed
Jan 6th, 2008, 08:36 AM
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
gehel
Jan 6th, 2008, 11:40 AM
<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 (http://tiles.apache.org/). Tiles does integrate well with Spring : http://static.springframework.org/spring/docs/2.5.x/reference/view.html#view-tiles
nyte3k
Jan 9th, 2008, 03:29 PM
I also like Sitemesh ....
http://www.opensymphony.com/sitemesh/
hkadmin
Jan 9th, 2008, 08:36 PM
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....
zeeed
Jan 10th, 2008, 01:46 PM
Thanks for help, I'm reading about tiles and sitemesh now :)
duffymo
Jan 10th, 2008, 01:50 PM
No need to update Sitemesh - works great as-is.
%
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.