Author: bpapez
Date: Thu Sep 6 11:06:06 2007
New Revision: 4
URL: https://svndev.jahia.net/websvn/listing.php?sc=3D1&rev=3D4&repname=3Dd=
oc_templates
Log:
Add simple template written with EL & JSTL
Added:
trunk/src/jsp/chapter1/el-jstl/bottom_el-jstl.inc
trunk/src/jsp/chapter1/el-jstl/declarations_el-jstl.inc
trunk/src/jsp/chapter1/el-jstl/leftmenu_el-jstl.inc
trunk/src/jsp/chapter1/el-jstl/maincontent_el-jstl.inc
trunk/src/jsp/chapter1/el-jstl/pagetitle_el-jstl.inc
trunk/src/jsp/chapter1/el-jstl/submenu_el-jstl.jsp
trunk/src/jsp/chapter1/el-jstl/top_el-jstl.inc
trunk/src/jsp/chapter1/template_el-jstl.jsp
Modified:
trunk/ (props changed)
trunk/src/jsp/chapter1/scriptlet/bottom_scriptlet.inc
trunk/src/jsp/chapter1/taglib/bottom.inc
Added: trunk/src/jsp/chapter1/el-jstl/bottom_el-jstl.inc
URL: https://svndev.jahia.net/websvn/filedetails.php?path=3D/trunk/src/jsp/=
chapter1/el-jstl/bottom_el-jstl.inc&rev=3D4&repname=3Ddoc_templates
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/src/jsp/chapter1/el-jstl/bottom_el-jstl.inc (added)
+++ trunk/src/jsp/chapter1/el-jstl/bottom_el-jstl.inc Thu Sep 6 11:06:06 2=
007
@@ -0,0 +1,21 @@
+<c:if test=3D"${currentPage.level =3D=3D 0}">
+ <content:declareContainerList name=3D"containerListFooter" title=3D"Foot=
er" =
+ containerListType=3D"<%=3DJahiaContainerDefinition.SINGLE_MANDATORY_=
TYPE%>">
+ <content:declareContainer>
+ <content:declareField name=3D'footer' title=3D'Footer' type=3D'BigTe=
xt'/>
+ </content:declareContainer>
+ </content:declareContainerList>
+ =
+ <content:containerList name=3D"containerListFooter"/>
+</c:if>
+ =
+<p>
+<content:absoluteContainerList name=3D"containerListFooter" id=3D"containe=
rListFooter" pageLevel=3D"1">
+ <content:container id=3D"footerContainer">
+ <content:bigTextField name=3D'footer' defaultValue=3D'' id=3D'footer' =
diffActive=3D'true'/>
+ <c:if test=3D"${currentPage.level =3D=3D 0}"> =
+ <jahiaHtml:actionMenu name=3D"footerContainer" namePostFix=3D"" reso=
urceBundle=3D"jahiatemplates.Doc_templates" useFieldSet=3D"false"/>
+ </c:if>
+ </content:container>
+</content:absoluteContainerList>
+</p>
Added: trunk/src/jsp/chapter1/el-jstl/declarations_el-jstl.inc
URL: https://svndev.jahia.net/websvn/filedetails.php?path=3D/trunk/src/jsp/=
chapter1/el-jstl/declarations_el-jstl.inc&rev=3D4&repname=3Ddoc_templates
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/src/jsp/chapter1/el-jstl/declarations_el-jstl.inc (added)
+++ trunk/src/jsp/chapter1/el-jstl/declarations_el-jstl.inc Thu Sep 6 11:0=
6:06 2007
@@ -0,0 +1,36 @@
+<%@ page import=3D"java.io.*"%>
+<%@ page import=3D"java.lang.*"%>
+<%@ page import=3D"java.util.*" %>
+<%@ page import=3D"org.apache.log4j.Logger"%>
+<%@ page import=3D"org.jahia.content.*" %>
+<%@ page import=3D"org.jahia.data.*" %>
+<%@ page import=3D"org.jahia.data.beans.*" %>
+<%@ page import=3D"org.jahia.data.containers.*" %>
+<%@ page import=3D"org.jahia.data.fields.*" %>
+<%@ page import=3D"org.jahia.data.files.*" %>
+<%@ page import=3D"org.jahia.exceptions.*" %>
+<%@ page import=3D"org.jahia.gui.*" %>
+<%@ page import=3D"org.jahia.params.*" %>
+<%@ page import=3D"org.jahia.services.pages.*" %>
+<%@ page import=3D"org.jahia.services.usermanager.*" %>
+<%@ page import=3D"org.jahia.services.version.*" %>
+
+<%@ taglib uri=3D"/WEB-INF/etc/taglibs/jstl/c" prefix=3D"c" %>
+<%@ taglib uri=3D"/WEB-INF/etc/taglibs/jstl/fmt" prefix=3D"fmt" %>
+<%@ taglib uri=3D"/WEB-INF/etc/taglibs/jstl/fn" prefix=3D"fn" %>
+<%@ taglib uri=3D"jahiaHtmlLib" prefix=3D"jahiaHtml" %>
+<%@ taglib uri=3D"contentLib" prefix=3D"content" %>
+
+<%
+Logger logger =3D Logger.getLogger(getClass());
+JahiaData jData =3D (JahiaData) request.getAttribute( "org.jahia.data.Jahi=
aData" );
+HashMap engineMap =3D (HashMap) request.getAttribute( "org.jahia.engines.E=
ngineHashMap" );
+if(jData =3D=3D null) {
+ jData =3D (JahiaData) engineMap.get( "jData" );
+}
+ParamBean jParams =3D jData.params();
+JahiaUser jahiaUser =3D jParams.getUser();
+PageBean currentPage =3D (PageBean) pageContext.findAttribute("currentPage=
");
+ContentPage contentPage =3D ContentPage.getPage(jData.page().getID());
+String contextURL =3D jData.gui().drawHttpJspContext(request);
+%>
Added: trunk/src/jsp/chapter1/el-jstl/leftmenu_el-jstl.inc
URL: https://svndev.jahia.net/websvn/filedetails.php?path=3D/trunk/src/jsp/=
chapter1/el-jstl/leftmenu_el-jstl.inc&rev=3D4&repname=3Ddoc_templates
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/src/jsp/chapter1/el-jstl/leftmenu_el-jstl.inc (added)
+++ trunk/src/jsp/chapter1/el-jstl/leftmenu_el-jstl.inc Thu Sep 6 11:06:06=
2007
@@ -0,0 +1,13 @@
+<content:declareContainerList name=3D'leftMenuContainerList' title=3D'Left=
Menu'>
+<content:declareContainer>
+ <content:declareField name=3D'leftLink' title=3D'Left Link' type=3D'Pa=
ge'/>
+</content:declareContainer>
+</content:declareContainerList>
+
+<jsp:include page=3D"../chapter1/taglib/submenu.jsp" flush=3D"true">
+ <jsp:param name=3D"currentPageId" value=3D'${currentSite.homepageID}'/>
+ <jsp:param name=3D"level" value=3D"1"/>
+ <jsp:param name=3D"isFirst" value=3D"true"/>
+ <jsp:param name=3D"isNotALink" value=3D"true"/>
+</jsp:include>
+
Added: trunk/src/jsp/chapter1/el-jstl/maincontent_el-jstl.inc
URL: https://svndev.jahia.net/websvn/filedetails.php?path=3D/trunk/src/jsp/=
chapter1/el-jstl/maincontent_el-jstl.inc&rev=3D4&repname=3Ddoc_templates
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/src/jsp/chapter1/el-jstl/maincontent_el-jstl.inc (added)
+++ trunk/src/jsp/chapter1/el-jstl/maincontent_el-jstl.inc Thu Sep 6 11:06=
:06 2007
@@ -0,0 +1,47 @@
+<%
+// declarations
+%>
+<content:declareContainerList name=3D'mainContentContainerList' title=3D'M=
ain Content'>
+<content:declareContainer>
+ <content:declareField name=3D'title' title=3D'Title' type=3D'SmallText=
'/>
+ <content:declareField name=3D'content' title=3D'Content' type=3D'BigTe=
xt'/>
+ <content:declareField name=3D'image' title=3D'Image' type=3D'File'/>
+ <content:declareField name=3D'align' title=3D'Image align' type=3D'Sha=
redSmallText' value=3D'<jahia_multivalue[left:right:default]>left'/>
+ <content:declareField name=3D'date' title=3D'Date' type=3D'Date' value=
=3D'<jahia_calendar[dd mon yyyy / HH:MM]>'/>
+</content:declareContainer>
+</content:declareContainerList>
+
+<%
+// display
+%>
+<content:containerList name=3D'mainContentContainerList' id=3D"mainContent=
ContainerList">
+<jahiaHtml:actionMenu name=3D"mainContentContainerList" namePostFix=3D"" r=
esourceBundle=3D"jahiatemplates.Doc_templates">
+<content:container id=3D'mainContentContainer'>
+ <jahiaHtml:actionMenu name=3D"mainContentContainer" namePostFix=3D"" r=
esourceBundle=3D"jahiatemplates.Doc_templates">
+ <content:textField name=3D'title' display=3D"false" valueId=3D"title" =
defaultValue=3D"" diffActive=3D"true"/>
+ <c:if test=3D'${!empty title}'>
+ <h2>${title}</h2>
+ </c:if>
+ <p>
+ <c:if test=3D"${!empty mainContentContainer.fields['image']}">
+ <c:set var=3D"image" value=3D"${mainContentContainer.fields['i=
mage'].object}"/>
+ <c:if test=3D"${image !=3D null && image.image}">
+ <content:textField name=3D'align' display=3D"false" valueI=
d=3D"align" defaultValue=3D""/>
+ <img src=3D"${image.downloadUrl}" border=3D"0"
+ alt=3D"${image.fileFieldTitle}"
+ <c:if test=3D"${align !=3D null && align !=3D 'defaul=
t'}">
+ align=3D"${align}" class=3D"${align}"
+ </c:if>
+ />
+ </c:if>
+ </c:if>
+ <content:bigTextField name=3D'content' defaultValue=3D"" diffActiv=
e=3D"true"/>
+ <content:textField name=3D'date' display=3D"false" valueId=3D"date=
" defaultValue=3D"" diffActive=3D"true"/>
+ <c:if test=3D'${!empty date}'>
+ <br/><em>${date}</em>
+ </c:if>
+ </p>
+ </jahiaHtml:actionMenu>
+</content:container>
+</jahiaHtml:actionMenu>
+</content:containerList>
Added: trunk/src/jsp/chapter1/el-jstl/pagetitle_el-jstl.inc
URL: https://svndev.jahia.net/websvn/filedetails.php?path=3D/trunk/src/jsp/=
chapter1/el-jstl/pagetitle_el-jstl.inc&rev=3D4&repname=3Ddoc_templates
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/src/jsp/chapter1/el-jstl/pagetitle_el-jstl.inc (added)
+++ trunk/src/jsp/chapter1/el-jstl/pagetitle_el-jstl.inc Thu Sep 6 11:06:0=
6 2007
@@ -0,0 +1,5 @@
+<h1>
+ ${currentPage.title}
+ <jahiaHtml:actionMenu name=3D"currentPage" namePostFix=3D"" resourceBu=
ndle=3D"jahiatemplates.Doc_templates" useFieldSet=3D"false">
+ </jahiaHtml:actionMenu>
+</h1>
Added: trunk/src/jsp/chapter1/el-jstl/submenu_el-jstl.jsp
URL: https://svndev.jahia.net/websvn/filedetails.php?path=3D/trunk/src/jsp/=
chapter1/el-jstl/submenu_el-jstl.jsp&rev=3D4&repname=3Ddoc_templates
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/src/jsp/chapter1/el-jstl/submenu_el-jstl.jsp (added)
+++ trunk/src/jsp/chapter1/el-jstl/submenu_el-jstl.jsp Thu Sep 6 11:06:06 =
2007
@@ -0,0 +1,62 @@
+<%@ include file=3D"declarations.inc"%>
+<content:absoluteContainerList name=3D'leftMenuContainerList' id=3D'leftMe=
nuContainerList' pageId=3D'${params.currentPageId}'>
+
+ <c:if test=3D"${params.isNotALink && !empty leftMenuContainerList.conten=
tContainerList.pickedObject}">
+ <c:set var=3D"params.isNotALink" value=3D"false"/>
+ </c:if>
+ =
+ <content:container id=3D"leftMenuContainer">
+ <content:pageField valueId=3D"leftLink" name=3D'leftLink'/>
+ =
+ <c:if test=3D"${params.isFirst}"> =
+ <div class=3D'isFirst'>
+ </c:if>
+ =
+ <div class=3D'${"level" + params.level)'> =
+ <a href=3D'<logic:notEmpty name=3D"leftLink"><bean:write name=3D"lef=
tLink" property=3D"url"/></logic:notEmpty>'
+ class=3D'${"link" + params.level)
+ <c:if test=3D"${!empty leftLink && leftLink.id =3D=3D currentP=
age.id}">
+ current
+ </c:if> =
+ '>
+ <c:choose> =
+ <c:when test=3D"${!empty leftLink}">
+ <c:if test=3D"${currentRequest.editMode && leftLink.contentObj=
ect.markedForDelete}">
+ <span class=3D'markForDelete'>
+ </c:if>
+ ${leftLink.highLightDiffTitle}
+ <c:if test=3D"${currentRequest.editMode && leftLink.contentObj=
ect.markedForDelete}">
+ </span>
+ </c:if> =
+ </c:when>
+ <c:otherwise>
+ n.d.
+ </c:otherwise>
+ </c:choose> =
+ =
+ <c:if test=3D"${currentRequest.editMode && (empty leftLink || isNo=
tAlink)}">
+ <jahiaHtml:actionMenu name=3D"leftMenuContainer" namePostFix=3D"=
.leftLink" resourceBundle=3D"jahiatemplates.Doc_templates" useFieldSet=3D"f=
alse"/>
+ </c:if>
+ </a>
+ </div>
+ =
+ <c:if test=3D"${params.isFirst}"> =
+ </div>
+ </c:if>
+ =
+ <c:if test=3D"${!empty leftLink && leftLink.inCurrentPagePath}">
+ <jsp:include page=3D"submenu.jsp" flush=3D"true">
+ <jsp:param name=3D"currentPageId" value=3D"${leftLink.id}"/>
+ <jsp:param name=3D"level" value=3D"${params.level + 1}"/>
+ <jsp:param name=3D"isFirst" value=3D"false"/>
+ <jsp:param name=3D"isNotALink" value=3D"${params.isNotALink}"/>
+ </jsp:include>
+ </c:if>
+ =
+</content:container>
+<c:if test=3D"${currentRequest.editMode && isNotALink}">
+ <div class=3D'level${params.level + 1} nostyle'>
+ <jahiaHtml:actionMenu name=3D"leftMenuContainerList" namePostFix=3D"=
.leftLinks" labelKey=3D"add.leftLinks" resourceBundle=3D"jahiatemplates.Doc=
_templates" useFieldSet=3D"false"/>
+ </div> =
+</c:if>
+</content:absoluteContainerList>
\ No newline at end of file
Added: trunk/src/jsp/chapter1/el-jstl/top_el-jstl.inc
URL: https://svndev.jahia.net/websvn/filedetails.php?path=3D/trunk/src/jsp/=
chapter1/el-jstl/top_el-jstl.inc&rev=3D4&repname=3Ddoc_templates
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/src/jsp/chapter1/el-jstl/top_el-jstl.inc (added)
+++ trunk/src/jsp/chapter1/el-jstl/top_el-jstl.inc Thu Sep 6 11:06:06 2007
@@ -0,0 +1,10 @@
+<content:JSTools/>
+
+<%@ include file=3D"/jsp/jahia/javascript/serverconfig_js.inc"%>
+
+<link rel=3D"stylesheet" href=3D"<content:contextURL/>/../common/css/web.c=
ss" type=3D"text/css"/>
+<link rel=3D"stylesheet" href=3D"<content:serverHttpPath/>/jsp/jahia/css/c=
ore_css.jsp" type=3D"text/css"></link>
+<c:if test=3D"${currentRequest.editMode}">
+ <link rel=3D"stylesheet" href=3D"<content:contextURL/>/../common/css/a=
ctions.css" type=3D"text/css"/>
+ <script language=3D"javascript1.2" src=3D"<content:contextURL/>/../com=
mon/javascript/actions.js" type=3D"text/javascript"></script>
+</c:if>
\ No newline at end of file
Modified: trunk/src/jsp/chapter1/scriptlet/bottom_scriptlet.inc
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/trunk/src/jsp/chapter=
1/scriptlet/bottom_scriptlet.inc&rev=3D4&repname=3Ddoc_templates
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/src/jsp/chapter1/scriptlet/bottom_scriptlet.inc (original)
+++ trunk/src/jsp/chapter1/scriptlet/bottom_scriptlet.inc Thu Sep 6 11:06:=
06 2007
@@ -6,6 +6,9 @@
footerFields.add( "footer" );
jData.containers().declareContainer( "containerListFooter", "Footer", =
footerFields, =
-1, -1, "", "", new String[]{}, JahiaContainerDefinition.SINGLE_MA=
NDATORY_TYPE, null);
+ =
+ // in order to create a SINGLE-MANDATORY list (as this does not work w=
ith getAbsoluteContainerList yet) =
+ jData.containers().getContainerList( "containerListFooter");
} =
=
JahiaContainerList footerContainerList =3D jData.containers().getAbsoluteC=
ontainerList( "containerListFooter" , jData.gui().getLevelID(1));
Modified: trunk/src/jsp/chapter1/taglib/bottom.inc
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/trunk/src/jsp/chapter=
1/taglib/bottom.inc&rev=3D4&repname=3Ddoc_templates
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/src/jsp/chapter1/taglib/bottom.inc (original)
+++ trunk/src/jsp/chapter1/taglib/bottom.inc Thu Sep 6 11:06:06 2007
@@ -5,13 +5,11 @@
<content:declareField name=3D'footer' title=3D'Footer' type=3D'BigTe=
xt'/>
</content:declareContainer>
</content:declareContainerList>
-</logic:equal> =
-<p>
-
-<logic:equal name=3D"currentPage" property=3D"level" value=3D"0">
+ =
<content:containerList name=3D"containerListFooter"/>
-</logic:equal>
-
+</logic:equal> =
+ =
+<p>
<content:absoluteContainerList name=3D"containerListFooter" id=3D"containe=
rListFooter" pageLevel=3D"1">
<content:container id=3D"footerContainer">
<content:bigTextField name=3D'footer' defaultValue=3D'' id=3D'footer' =
diffActive=3D'true'/>
Added: trunk/src/jsp/chapter1/template_el-jstl.jsp
URL: https://svndev.jahia.net/websvn/filedetails.php?path=3D/trunk/src/jsp/=
chapter1/template_el-jstl.jsp&rev=3D4&repname=3Ddoc_templates
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/src/jsp/chapter1/template_el-jstl.jsp (added)
+++ trunk/src/jsp/chapter1/template_el-jstl.jsp Thu Sep 6 11:06:06 2007
@@ -0,0 +1,40 @@
+<%@ page language=3D"java" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 =
Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns=3D"http://www.w3.org/1999/xhtml">
+<head>
+ <%@ include file=3D"el-jstl/declarations_el-jstl.inc"%>
+ <%@ include file=3D"el-jstl/top_el-jstl.inc"%> =
+ <title>${currentPage.title}</title>
+ <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-=
8" />
+</head>
+<body>
+<c:if test=3D"${currentRequest.logged}">
+<div id=3D"topadminbar">
+ <jsp:include page=3D"/jsp/jahia/topbar/topmenu.jsp" flush=3D"true"/>
+ <jsp:include page=3D"/jsp/jahia/topbar/operationbuttons.jsp" flush=3D"=
true"/>
+</div> =
+</c:if>
+<div class=3D"main">
+ <div class=3D"header">
+ <a href=3D"${currentSite.homePage.url}"><img
+ src=3D"<content:contextURL/>/../common/img/logo.gif" alt=3D"Home" wi=
dth=3D"150" height=3D"40" border=3D"0" /></a>
+ </div>
+ <div id=3D"content">
+ <div id=3D"contentLeft">
+ <div id=3D"navigation">
+ <%@ include file=3D"el-jstl/leftmenu_el-jstl.inc"%>
+ </div>
+ </div>
+ <div id=3D"contentMiddleAndRight"> =
+ <div class=3D"maincontent">
+ <content:currentPagePath separator=3D' > ' maxchar=3D'40'/>
+ <%@ include file=3D"el-jstl/pagetitle_el-jstl.inc"%>
+ <%@ include file=3D"el-jstl/maincontent_el-jstl.inc"%>
+ <%@ include file=3D"el-jstl/bottom_el-jstl.inc"%>
+ <content:logButton logoutTitle=3D''/>
+ </div>
+ </div>
+ </div> =
+</div>
+</body>
+</html>
_______________________________________________
cvs_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/cvs_list