Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Sitemesh does not decorate my jsp pages .  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am converting my legacy Struts2 application to maven .
After which sitemesh is not decorating the jsp pages anymore .

my decoartor.xml looks like this :

<decorator name="main" page="/WEB-INF/jsp/common/decorator/coms_main_layout.jsp">

<decorator name="aocmanager" page="/WEB-INF/jsp/aocmanager/decorator/aocmanager_main_layout.jsp">

<decorator name="cdrm" page="/WEB-INF/jsp/cdrm/decorator/cdrm_main_layout.jsp">


Only index.jsp is decorated but other jsp files are not .
I tried *.action in url mapping but then all the jsp's are decorated with same layout.
I want jsp's in aocmanager folder should be decoarted with aocmanager_main_layout.jsp and jsp's in cdrm folder should be decorated with cdrm_main_layout.jsp

i have also tried following
-Adding dispatcher in web.xml

Can someone please help . I have been stuck with issue for a long time now
He's giving us the slip! Quick! Grab this tiny ad!
how do I do my own kindle-like thing - without amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!