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
0
votes
0 answers

Sitemesh throws: Unhandled exception occurred whilst decorating page: java.lang.ArrayIndexOutOfBoundsException: -1

During migration of application from JBOSS5 to JBOSS6 I had to update Struts2 2.1.8 to 2.3.24 Application is now working correctly except one page when I'm getting this exception: Servlet.service() for servlet JspSupportServlet threw exception:…
mrh
  • 917
  • 1
  • 9
  • 28
0
votes
1 answer

Three Column Layout and Spring-MVC

I want to implement ThreeColumnLayout for my web-app. E.g. having NavigationComponent, BookmarkComponent in Left Panel, OnlineUserComponent in Right Panel. There are also some more components, which can be made visual/hidden by User dynamically and…
dira
  • 30,304
  • 14
  • 54
  • 69
0
votes
1 answer

How to use printable view from siteMesh?

I am using siteMesh 2.4.2 with Spring Frameworks 4.1. The UI was built as head/content/footer style. Which is fine for most situation. But When I try to generate a printable view, I found I can't do it, as all JSP were wrapped in that style. How I…
cidy.long
  • 417
  • 12
  • 35
0
votes
0 answers

Sitemesh2 + Struts2 ignoring patterns

We have a Struts2 project that uses sitemesh. We have 2 decorators but for some unknown reason sitemesh always defaults to the catchall pattern. We've stripped down configuration to the bare necessities, omitting spring-security, removing filters…
jvos
  • 157
  • 3
  • 10
0
votes
2 answers

Spring Servlet and Spring security filter chain Url Patterns

I'm having a lot of trouble debbuging those 404 messages on spring security's j_spring_security_check and j_spring_security_logout. I believe that there might be some conflict between SpringServlet Url-Pattern, springSecurityFilterChain Url-Pattern…
tggm
  • 973
  • 2
  • 15
  • 41
0
votes
2 answers

Why does the ESAPI ClickjackFilter have to come after the SiteMesh filter?

We have an application using OpenSymphony SiteMesh to assemble pages, and we've added the OWASP ESAPI ClickjackFilter to add the X-FRAME-OPTIONS header to responses. However, it only works if the ClickjackFilter mapping comes after the…
ThrawnCA
  • 1,051
  • 1
  • 10
  • 23
0
votes
0 answers

Sitemesh not Working After Java And Jboss Migration?

I have successfully running my application in Java 6 and Jboss 6.1 and Spring 2.3 Now, Am Migrating My Application to Java 8 and WildFly 8.2 and Spring 4.2 Everything looks fine but, for an application there is a issue, that the decorators are not…
Raj Kumar Samala
  • 561
  • 12
  • 31
0
votes
1 answer

What is is causing the script block in the html head of a gsp to be overwritten

I have 2 grails views that both refer to the same layout: index.gsp & custom.gsp Both pages have a