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 + struts2 How to include external files in standard.jsp

My company has 20+ web applications. They all use Struts2 and Sitemesh to decorate the pages. Every application has its own version of header.html and footer.html which are included in standard.jsp (using <%@ include file=filename%>). For look and…
tamf
  • 1
  • 1
0
votes
2 answers

How to use Struts2-jQuery Plugin with sitemesh

I have this error when I try to include the tag (http://code.google.com/p/struts2-jquery/wiki/HeadTag) in a sitemesh decorator main.jsp (decorator) <%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %> <%@ taglib…
Fayway
  • 15
  • 5
0
votes
2 answers

Using maven for a dynamic web project

I'm newbie to Maven and I'm used it to create a dynamic web project in Eclipse with traditionnal jars. I downloaded maven and installed it on my Windows8 system as indicated on the documentation and as listed on Kepler doc too, you don't have to…
Sima
  • 61
  • 1
  • 6
0
votes
3 answers

Trying to compare value of meta tag using sitemesh and EL

I am trying to compare value of meta tag returned by sitemesh with a string but its not displaying correct result. Below is code what I am trying. Please Let me know if something wrong.
Rahul Rox
  • 11
  • 3
0
votes
1 answer

unable to create drop down menu, a list box is created instead

I'm having a tough time creating a drop down menu for an array list of objects. The bottom example shows what I want to do. I was able to make a drop down populated with an array of objects. The top example won't behave the same way. The objects are…
user771912
  • 401
  • 1
  • 4
  • 16
0
votes
1 answer

Using spring forms in templates

I have a registration form in my header.jsp which includes fields; name-email-password. When user clicks "register" button, it will be POSTed to my registration controller: @RequestMapping(value ="/register", method = RequestMethod.POST) public…
JuniorDev
  • 1,170
  • 2
  • 9
  • 19
0
votes
1 answer

Struts2 + Sitemesh + Freemarker doesn't work

I've tried every example i could find and I can't get struts2 + sitemesh + freemarker to work on a simple jsp. I have a very simple web.xml, a single action that just goes to index.jsp, and a simple .ftl decorator that just adds some text to the…
jdoklovic
  • 146
  • 3
  • 6
0
votes
1 answer

Error with Grails 2.4 in Weblogic 10.3.6

I've run across a problem with Grails 2.4 war running in Weblogic 10.3.6 that seems to be coming from Sitemesh: java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getServletContext()Ljavax/servlet/ServletContext; at…
user779643
  • 37
  • 6
0
votes
1 answer

is it siteMesh as grails UI framework responsive or not?

I decided to learn Grails but before it I have 2 concern about siteMesh as web framework. 1.Is it responsive UI framework? 2.Do it support Right-to-Left? thank you
farhad
  • 373
  • 2
  • 14
  • 28
0
votes
2 answers

Does Sitemesh work with Gaelyk ? Does anybody have a working guide?

Has anyone been able to get sitemesh and gaelyk working together? This seems to be possible as mentioned here http://blogs.bytecode.com.au/glen/2009/12/14/getting-sitemesh-running-on-google-app-engine.html. However I unable to get this working with…
aldrin
  • 4,482
  • 1
  • 33
  • 50
0
votes
2 answers

How to define JavaScript at the and of the page (because of performance issues) with SiteMesh3?

I'm using SiteMesh3 in my project but I don't know how to solve this problems: For performance issues, I want to put my specific JavaScripts at the end of my pages (http://developer.yahoo.com/performance/rules.html#js_bottom) and the generic ones,…
Pmt
  • 1,122
  • 3
  • 13
  • 27
0
votes
1 answer

How to deal with zTree under Spring MVC and sitemesh?

I just would like to integrate all of the above 3 items in one project. And I have met several kinds of problems: I am not sure how to load the specific js file in the common page (not the decorator). Please refer to the attached code, maybe the js…
Bob
  • 71
  • 1
  • 11
0
votes
2 answers

Spring Security, Sitemesh & Taglibs

My problem is similar to this one: Spring security tags in sitemesh decorator I'm using sitemesh in a Spring MVC project with Spring security. My web.xml looks like this: springSecurityFilterChain
Paul Grenyer
  • 1,713
  • 3
  • 30
  • 51
0
votes
1 answer

Is it possible to extract SCRIPT tags using SiteMesh?

I have custom JSP tags that generate some HTML content, along with some javascript functions that get called by this HTML code. In the current implementation, the SCRIPT tags are created just above the HTML code. To avoid modifying the existing…
user159088
0
votes
0 answers

Sitemesh: decorator.xml using .properties file

Im trying to keep constant all the urls of my aplication storing it in a .properties file. For example: //url.properties url.prefix.module_users=/users So, in case that I want to change an url, dont have to look for all the places where I use it.…
kiduxa
  • 3,339
  • 11
  • 37
  • 52