[opencms-dev] Problem with JSP Templates

Vitor Varalonga varalonga at gmail.com
Tue Nov 8 17:41:30 CET 2005


Hi!


I'm having some problems including a JSP template, so I was wondering if some
kind expert could lean a helping hand to this OpenCMS beginner. :)
I've created a JSP template like this:

<%@ page session="false" %>
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>

<cms:template element="head">

<html>
(...)

	<meta HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html;
CHARSET=<cms:property name="content-encoding" default="ISO-8859-1"/>">
	<link type="text/css" rel="stylesheet"
href="<cms:link>../resources/styles/ISMT.css</cms:link>">
	<cms:editable/>
</head>

<body bgcolor="#005B5B" marginheight="0" topmargin="0" marginwidth="0"
leftmargin="0" rightmargin="0">

<table width="600" border="0" cellspacing="0" cellpadding="0"
bgcolor="#FFFFFF" align="left">
<tr align="left" valign="top">
    	<td height="446" class="lista_cinza">
      		<table width="750" border="0" cellspacing="0" cellpadding="0">
        	<tr bgcolor="#FFFFFF">
          		<td width="142" height="80" valign="top"> </td>
          		<td width="487" height="80" valign="top" align="left">
				<img src="<cms:link>../resources/images/logo.gif</cms:link>"
width="193" height="70"><br>
	            		<img
src="<cms:link>../resources/images/transp.gif</cms:link>" width="1"
height="2">
			</td>
          		<td width="121" height="80" valign="bottom"
align="right"><a href="javascript:history.back();"><img
src="<cms:link>../resources/images/voltar_laranja.gif</cms:link>"
width="119" height="18" border="0"></a></td>
        	</tr>
        	<tr>
          		<td width="142" height="35" bgcolor="#006d6b"
valign="bottom" class="titulos_brancos">
				<img src="<cms:link>../resources/images/h1_peq.jpg</cms:link>"
width="95" height="35">
			</td>
          		<td width="487" height="35" bgcolor="#006d6b"
class="titulos_brancos" valign="bottom"> </td>
			<td width="121" height="35" bgcolor="#006d6b"
class="titulos_brancos" valign="bottom"> </td>
        	</tr>
        	<tr>
          		<td width="142" height="6" bgcolor="#006d6b"> </td>
          		<td width="487" height="6" align="left" valign="bottom"
bgcolor="#006d6b"> </td>
          		<td width="121" height="6" align="right" valign="top"
bgcolor="#006d6b"> </td>
        	</tr>
        	<tr>
          		<td width="142" bgcolor="#e5581d"><img
src="<cms:link>../resources/images/transp.gif</cms:link>" width="1"
height="1"></td>
          		<td width="487" bgcolor="#e5581d"><img
src="<cms:link>../resources/images/transp.gif</cms:link>" width="1"
height="1"></td>
          		<td width="121" bgcolor="#e5581d"><img
src="<cms:link>../resources/images/transp.gif</cms:link>" width="1"
height="1"></td>
        	</tr>
        	<tr>
          		<td width="142" bgcolor="#FFFFFF"><img
src="<cms:link>../resources/images/transp.gif</cms:link>" width="1"
height="1"></td>
          		<td width="487" height="5" valign="middle"
bgcolor="#e5581d" class="titulos_brancos"><img
src="<cms:link>../resources/images/transp.gif</cms:link>" width="1"
height="1"></td>
          		<td width="121" height="5" valign="middle"
bgcolor="#e5581d" class="titulos_brancos"><img
src="<cms:link>../resources/images/transp.gif</cms:link>" width="1"
height="1"></td>
        	</tr>
		<table>

</cms:template>

<cms:template element="body">
	<cms:include element="body" editable="true"/>
</cms:template>

<cms:template element="foot">

      		<table width="750" border="0" cellspacing="0" cellpadding="0">
        	<tr bgcolor="#FFFFFF">
          		<td width="142"><img
src="<cms:link>../resources/images/transp.gif</cms:link>" width="1"
height="1"></td>
          		<td width="487" valign="top" bgcolor="#e5581d"><img
src="<cms:link>../resources/images/transp.gif</cms:link>" width="1"
height="1"></td>
          		<td width="121" valign="top" bgcolor="#e5581d"><img
src="<cms:link>../resources/images/transp.gif</cms:link>" width="1"
height="1"></td>
        	</tr>
      		</table>
    	</td>
</tr>
</table>
 

</body>

</html>

</cms:template>



More information about the opencms-dev mailing list