#: Melanie Rooney changed the world a bit at a time by saying on  10/5/2005 
11:41 PM :#
Hi,

I am new to the mailing lists and am not sure if this might better be posted to the developer list, but thought I would try here first. Any guidance would be very much appreciated.

We have implemented a Magnolia CMS site (with Version: 2.1 Build: 1454 on a Red Hat Linux server running Tomcat 5.0). We have been happy with pretty much everything we have seen and been able to do, EXCEPT one nagging, potentially show stopping problem........

We have implemented a custom tag to provide top header JavaScript-based Milonic (www.milonic.com) menu-ing. We have used the "simpleNavigation" tag code as the basis of our new tag and all works well except "periodically" (once/twice a day) the menu-ing disappears from Author and Public instance pages and/or parts of the JS are displayed in the browser window as (uninterpreted) text. I see no correlation between page activation or author activity. It appear to occur randomly after some nth request fo a page. When the problem occurs, examination of the page source code in the web browser indicates that none or some parts of the JS output of our tag has not been included in the page.

The problem clears is the web application or Tomcat itself is stopped/started - the top level menu code is output and appears properly on all pages and continues to do so for an indeterminate time/number of site accesses.

I have read with some concern the various postings about caching and web browser refresh issues and hence have turned caching off in both Author And Public instances thus: server > cache > level1 > active = false

AND include the following in the top of each JSP template....

<meta content="text/html; charset=iso-8859-1" http-equiv="content-type"/>
<meta content="no-cache" http-equiv="cache-control"/>
<meta content="no-cache" http-equiv="pragma"/>
<meta content="0" http-equiv="expires"/>

We call our custom tag "milonicTopNavigation" in a our JSP page templates thus:

<jsp:root version="2.0" xmlns:jsp="http://java.sun.com/JSP/Page";
         xmlns:cms="urn:jsptld:cms-taglib"
         xmlns:cmsu="urn:jsptld:cms-util-taglib"
         xmlns:c="urn:jsptld:http://java.sun.com/jsp/jstl/core";
         xmlns:fmt="urn:jsptld:http://java.sun.com/jsp/jstl/fmt";>
         <jsp:directive.page contentType="text/html; charset=utf-8" />
<jsp:text> <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> ]]> </jsp:text>
     <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
         <head>
             <c:import url="/templates/jsp/codarra/global/head.jsp" />
           <cmsu:milonicTopNavigation startLevel="1" />
         </head>

         <body>

Any ideas anyone? Banging my head against a brick wall at this point.

How does Tomcat actually load the site pages - why could execution of a custom tag work happily and then but suddenly start failing until a restart?

Does Tomcat perhaps do some caching independent of what Magnolia is doing?

regards, Melanie

Melanie Rooney
Web Systems Manager
Stepsoft Pty Ltd
Unit 5, 11 National Circuit,
BARTON ACT 2600
AUSTRALIA




The only thing I may think of is that the generated html is not valid. Have you 
double checked this?

./alex
--
.w( the_mindstorm )p.


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------



----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to