Questions tagged [sitemesh]

SiteMesh is a Java web application development framework developed by OpenSymphony.

According to OpenSymphony, SiteMesh:

  • Is a web-page layout and decoration framework and web application integration framework to aid in creating large sites consisting of many pages for which a consistent look/feel, navigation and layout scheme is required
  • Intercepts requests to any static or dynamically generated HTML page requested through the web server, parses the page, obtains properties and data from content, and generates appropriate final page with modifications to original—based on Decorator design pattern
  • Can also include entire HTML pages as a Panel within another page—similar to Server Side Includes, except HTML document modified to create a visual window (using document's Meta-data as aid) within a page. Using this feature, Portal type web sites can be built very quickly and effectively. This is based upon the well-known Composite design pattern.
  • Built on Java 2 with Servlet, JSP and XML technologies. This makes it good for use with Java EE applications, however it can be integrated with non-Java server-side web architectures, like CGI (Perl/Python/C/C++/etc), PHP, and ColdFusion.
  • Very extensible, designed for easy extension for custom needs

History

SiteMesh was originally developed in 1999 by Joe Walnes. At the time it used Servlet Chains, a feature not part of the standard Servlet specification but supported by some Servlet containers such as Orion Application Server. In 2000, the first public review of version 2.3 of the Servlet Specification was released, which contained the addition of Servlet Filters. These provided a standardized alternatives to Servlet Chains and SiteMesh was adapted to make use of these instead. Shortly after this, the decision was made to release SiteMesh as open source software. Joe Walnes and Mike Cannon-Brookes formed the OpenSymphony project to provide a source of Java EE components - the first two consisting of SiteMesh and OSCache. At this time, SiteMesh had a very small set of users, many of whom got involved in the development of the project. Not long after SiteMesh was originally open sourced, Victor Salaman rewrote the internal HTML parser to produce a 1200% performance increase.

Sources:

http://en.wikipedia.org/wiki/SiteMesh

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

Documentation

240 questions
4
votes
2 answers

Grails 2.4 ClassNotFoundException: Sitemesh GrailsPageFilter

Please note: This question is almost a duplicate to this one titled "resource plugin error when upgrading from grails 2.3.8 2.4", however a few things are different that, in my mind, make it worthy of asking it as a separate question: In that…
smeeb
  • 27,777
  • 57
  • 250
  • 447
4
votes
1 answer

How to enable logs for sitemesh

Is ther any form to enable logs for sitemesh ? I already put this in the log4j configuration but it doesn't work
atomsfat
  • 2,863
  • 6
  • 34
  • 36
4
votes
1 answer

"Not Modified" header followed by unexpected content body with sitemesh3 and mod-jk

In my Java / Struts2 / Tomcat application, when requesting some resources that generate a "304 Not Modified" response, the file is still being sent in the response. This is a response example captured with Fiddler: HTTP/1.1 304 Not Modified Date:…
xtian
  • 2,908
  • 2
  • 30
  • 43
4
votes
1 answer

spring boot with sitemesh

I'm using spring boot, and I would like to use sitemesh3 to my project. I need to add the sitemesh filter, I create this class : @Configuration public class Initializer implements ServletContextInitializer{ @Override public void…
Mabrouk
  • 63
  • 1
  • 4
4
votes
1 answer

Sitemesh does not decorate returned view

I have consult Sitemesh does not decorate returned views, but this post does not work for me. I hope sitemesh only decorate .jsp pages, but when one view is returned by a controller, it is not decorated. This is part of my web.xml:
Yishu Fang
  • 9,448
  • 21
  • 65
  • 102
4
votes
1 answer

Sitemesh custom javascript per page

I am using sitemesh for a spring based site. The problem is that I have some javascript that I want it to run on the onload event of only one specific page using jquery $(function() { ... }) and not on every page. I have included the jquery.js in…
Serafeim
  • 14,962
  • 14
  • 91
  • 133
4
votes
2 answers

Generic Error Page not decorated

I have a generic error page which is not decorated by SiteMesh. May I know what is the reason ? SiteMesh_Filter SiteMesh_Filter
nicholas
  • 2,581
  • 14
  • 66
  • 104
4
votes
3 answers

How do I integrate Sitemesh 3 with Spring MVC 3?

I am trying to use Sitemesh 3 to control the decoration of JSP output from a Spring MVC application. When I hit the application it seems that Sitemesh is making a request to the Spring servlet to try and retreive its decorator file. This may, or may…
DaFoot
  • 1,475
  • 8
  • 29
  • 58
4
votes
2 answers

what is the difference between and

As the title says... I'm using grails to build a webpage and I know grails uses sitemesh to mesh GSPs. I have done some googling and I found 2 ways to "tile" gsps (the g:applyLayout and g:render template tags). Both seem to do the job of "tiling"…
Matt Westlake
  • 3,499
  • 7
  • 39
  • 80
4
votes
1 answer

Pass a variable from Sitemesh Decorator

We have a system which uses multiple decorators for different sized pages, whilst using the same content pages. I'm trying to set a variable which can be passed to the content pages (which are written in JSP). e.g.
Toby
  • 1,651
  • 2
  • 18
  • 31
3
votes
1 answer

Sitemesh2 is discontinued, Sitemesh3 is ALPHA - what now?

I kind of accidentally stumbled upon opensymphony's website stating that they went out of business - but their projects (at least some) will be continued over the course of time by others. However, I'm relying on sitemesh 2.4.2 in on of my…
chzbrgla
  • 5,158
  • 7
  • 39
  • 56
3
votes
2 answers

What is the Grails GSP equivalent of ASP's ContentPlaceHolder?

I've been playing around a lot with the templating/layout concepts in Grails GSP. I've ben using layouts/content blocks for imitating ASP's master page behavior. For example, I am using the tag in a template to leave a…
DigitalZebra
  • 39,494
  • 39
  • 114
  • 146
3
votes
1 answer

sitemesh layout

The Stripes web framework includes a layout engine which provides the following feature: Layout Definition File - layout.jsp Header
Footer
Page Using…
Dónal
  • 185,044
  • 174
  • 569
  • 824
3
votes
2 answers

How to exclude sitemesh filter when resolving error in spring?

I have a Sitemesh filter that will decorate pages. I have configured a Spring's exceptionResolver so that all the error will go to a view called error which is then pointed to WEB-INF/jsp/error.jsp through InternalResourceViewResolver. Now the error…
jackysee
  • 2,051
  • 4
  • 32
  • 38
3
votes
2 answers

SiteMesh 2.4.2 + Spring MVC 3.0.4 - using multiple decorators

I'm developing an application that uses SiteMesh 2.4.2 together with Spring MVC. I'd like to have two decorators, e.g. : /something/*
jfu
  • 31
  • 1
  • 2
1 2
3
15 16