Thanks for the anwers so far.
But it is not working for me, because I still have this extra <html> 
tags included.
I have done the following xperiments:

<tiles:insert page="../includes/navigation.jsp" />
<jsp:include page="../includes/navigation.jsp"/>
<%@ include file="../includes/navigation.jsp" %>
<page:applyDecorator name="sidenav" 
    page="/WEB-INF/jsp/includes/navigation.jsp"  />

All of them included extra <html>

I simply do not get it! 
Maybe some of you can put some light on this mystery :-)

Here is my code:
-------
main.jsp
-------

<%@ taglib uri="struts-html"            prefix="html" %>
<%@ taglib uri="struts-tiles"           prefix="tiles" %>
<%@ taglib uri="sitemesh-page"          prefix="page" %>
<%@ taglib uri="sitemesh-decorator" prefix="decorator" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
        
<html:html xhtml='true'>
<head>
  <meta http-equiv="content-type" 
      content="text/html; charset=iso-8859-1" />
  <title>SomeName - <decorator:title default="default title" /></title>
  <decorator:head />
  <link rel="stylesheet" type="text/css" 
    href="<%=request.getContextPath()%>/ui/css/default.css" />
</head>
<body>
  <a name="top"></a>

  <tiles:insert page="../includes/navigation.jsp" />
  <jsp:include page="../includes/navigation.jsp"/>
  <%@ include file="../includes/navigation.jsp" %>
  <page:applyDecorator name="sidenav" 
      page="/WEB-INF/jsp/includes/navigation.jsp"  />
                        
  <div id='content' style="border: solid red 1px">
    <decorator:body />
    <p>
       <small>
           (<a href="?printable=true">printable version</a>)
       </small>
    </p>
  </div>
</body>
</html:html>

--------------------
includes/navigation.jsp
--------------------
<%@ taglib uri="struts-html"  prefix="html" %>

<html:html xhtml='true'>

  <div id='sidenav'>
    <div class='snblock'>
    <img src="ui/media/arrow_autumn03.gif" 
        width="11" height="11" alt="" />
       <span id='search'>Search</span>

         <html:form action="search.jspa" >
            <html:text property="keyword" size="18" maxlength="30" />
            <html:image page="/ui/media/search_button.gif" />
          </html:form>
    </div>
  </div>

</html:html>

-----------------------------------------------
And this is the output:
-------------------

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
        
<html>
  <head>
    <meta http-equiv="content-type" 
        content="text/html; charset=iso-8859-1" />
    <title>SomeName - JSP counter</title>
    <link rel="stylesheet" 
        type="text/css" href="/sitemesh-blank/ui/css/default.css" />
  </head>
  <body>
    <a name="top"></a>

<html>
  <div id='sidenav'>
    <div class='snblock'>
        <span id='search'>Search</span>

      <form name="searchForm" method="POST" 
          action="/sitemesh-blank/search.jspa">
         <input type="text" 
             name="keyword" maxlength="30" size="18" value="">
         <input type="image" name="" 
            src="/sitemesh-blank/ui/media/search_button.gif">
      </form>
    </div>
  </div>

</html>

      <div id='content' style="border: solid red 1px">
         The current count is... <big>2</big>
         <p>
           <small>
                (<a href="?printable=true">printable version</a>)
           </small>
         </p>
      </div>
  </body>
</html>


-------------------------------------------------------
validation results:
-------------------
Document type does not permit element â<html>â
    in content of element â<body>â.
Document type does not permit element â<div>â
    in content of element â<html>â.
Value of attribute âmethodâ for element â<form>â is invalid; 
    Value must be one of {"get","post"}.
Document type does not permit element â<input>â 
    in content of element â<input>â.
Close tag for element â</input>â omitted 
    but document type doesn't permit it.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to