Hi,

I am building a site with Sitemesh and Webwork and I am having two problems that I would appreciate assistance with.  We have adopted doing all of our JSP development using the XML compliant syntax rather than the older JSP propriatary syntax. Both problems I have relate to this. For the record I am using Sitemesh 1.5, Webwork 1.2.1 and I am running on JBoss 3.2 with Tomcat 4.1.12 embedded. These are running on RH Linux 7.3 with Java  1.4.1.

The first problem, is that when I do a very simple JSP page using the xml syntax with a page as such:
<?xml version="1.0" encoding="UTF-8"?>
<jsp:root
    version="1.2"
    xmlns:jsp="http://java.sun.com/JSP/Page"
  >

    <html>
        <head>
            <title>User registration</title>
        </head>
       <body>
       </body>
    </html>
</jsp:root>

the page shows but there is no Sitemesh wrapping present. If I substitute plain HTML or JSP propriatary syntax into the same jsp file, then Sitemesh wraps the page just fine. My understading was that Sitemesh did not care how the page content was produced, so this behaviour is very surprising to me.

The second problem is more basic. Is it even possible to use the Webwork taglibs in jps that uses the xml syntax? So far my testing has indicated that this does not work and my guess is that it is because the taglibs use templates that spew out the old style JSP.  So in the end I am trying to mix oil and water. Is this accuarate? If so, would translating the templates resolve the issue or are there more fundamental changes that would have to be applied to the taglib library itself?

- joel

Reply via email to