wood burning stoves 2.0
The moose likes Other Open Source Projects and the fly likes sitemesh (composite views) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "sitemesh (composite views)" Watch "sitemesh (composite views)" New topic

sitemesh (composite views)

Manjesh Patil
Ranch Hand

Joined: Sep 24, 2010
Posts: 42

Hi ,
I am using Sitemesh component to get composite view for one of my J2ee based application.

The problem is javascript function defn like function a() {} and the caller <body onload=a()/> of individual pages are not being copied to the final/resultant page.
It is copying the <body > tag of layout.jsp when this happens my onload functtion call and functions are missing,,


<title>Your Company Name</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<link rel="stylesheet" href="css/styles.css" type="text/css">
<body BGCOLOR="8BB381" text="#000000" leftmargin="0" topmargin="0"
marginwidth="0" marginheight="0" link="#eeeeee" align="center">
<jsp:include page="/includes/header.jsp"></jsp:include>
<table width="75%" cellspacing="0" cellpadding="0" border="0"
align="center" bgcolor="#C5908E" height="150%">
<tr height="30">
<td height="250" valign="top" width="160">
<table width="160" cellspacing="0" cellpadding="8" border="0"
<tr >
<td class="menu">
<jsp:include page="/includes/navigation.jsp"></jsp:include>


<td bgcolor="#f0ddc8" height="250" valign="top" >
<decorator:body />

<jsp:include page="/includes/footer.jsp"></jsp:include>

one of individual page

<title>create you profile</title>

<script type="text/javascript">
function toggleHopitalInfo(){
alert("toggling info");

<body onload="toggleHopitalInfo()">
<form method="post">

thanks in advance
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

Please be sure to use code tags when posting code to the forums. Unformatted or unindented code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please click this link ⇒ UseCodeTags ⇐ for more information.

Properly indented and formatted code greatly increases the probability that your question will get quicker, better answers.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link: http://aspose.com/file-tools
subject: sitemesh (composite views)
It's not a secret anymore!