[opencms-dev] element definitions in jsptemplate
    enol 
    eolla at lookup-it.com
       
    Tue Jun 17 09:47:01 CEST 2003
    
    
  
Hi List,
I have a little problem...
I split a jsptemplate in template elements.
When I try to use some of these elements in a jsp, what
I see doesn't match with the template element definition in the jsptemplate
but include page.jsp that is include in the jsptemplate too.
May be I not defined well the elements...
Here is a sample of my code:
******jsptemplate******
<cms:template element="top">
<html>
<head>
<title></title>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META http-equiv="Pragma" CONTENT="no-cache">
</head>
<body bgcolor="#ffffff" topmargin="0" leftmargin="0">
<table width="760" align="center" cellpadding="0" cellspacing="0">
  <!-- TOP -->
  <tr>
    <td colspan=7 height="60"> <table width="100%" align="center"
cellpadding="0" cellspacing="0">
        <tr>
          ******* HTML CODE *******
        </tr>
     </td>
  </tr>
</cms:template>
  <tr>
    <cms:template element="body">
          <cms:include element="body" />
    </cms:template>
    <cms:include page="../elements/page.jsp" />
  </tr>
<cms:template element="foot">
  <tr>
     ******* HTML CODE *******
  </tr>
</table>
</body>
</html>
</cms:template>
******* simplejsp.jsp *******
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
<cms:include property="template" element="top"/>
    
    
More information about the opencms-dev
mailing list