Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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 ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Sitemesh does not decorate my jsp pages .  RSS feed

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

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 :
<decorators>

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

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

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

</decorators>


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
<filter-mapping>
<filter-name>sitemesh</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>

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
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!