<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Isn't it that the template property
wouldn't have to look something like:<br>
<br>
template= <b><u>provider=</u></b><b><u>org.opencms.loader.CmsDefaultTemplateContextProvider</u></b>,template=/system/modules/my.first.module/templates/main.jsp<br>
<br>
<br>
Am 18.04.2016 um 08:59 schrieb Junaid Sarfraz:<br>
</div>
<blockquote
cite="mid:299330442.1910538.1460962774830.JavaMail.yahoo@mail.yahoo.com"
type="cite"><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]-->
<div style="color:#000; background-color:#fff;
font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif;font-size:16px">
<div id="yui_3_16_0_ym19_1_1460962553862_4436">I put the my
question <a moz-do-not-send="true" class="edited-link-editor"
href="http://stackoverflow.com/questions/36687220/opencms-jsp-template"
id="yui_3_16_0_ym19_1_1460962553862_4919">here</a> and <a
moz-do-not-send="true" class="edited-link-editor
enhancr2_a8ea4f91-ccc3-06e9-ce4a-920a5f882bd8"
href="https://github.com/alkacon/opencms-core/issues/385"
id="yui_3_16_0_ym19_1_1460962553862_4829">here</a> too</div>
<div id="yui_3_16_0_ym19_1_1460962553862_4918"><br>
</div>
<div id="enhancr2_a8ea4f91-ccc3-06e9-ce4a-920a5f882bd8"
class="yahoo-link-enhancr-card ymail-preserve-class
ymail-preserve-style" style="font-family:'Helvetica Neue',
Helvetica,Arial,sans-serif; width:288px; display:inline-block;
margin: 5px 5px 5px 0;"
data-url="https://github.com/alkacon/opencms-core/issues/385"
data-type="yenhancr" data-category="object" data-embed-url=""
data-size="mini" dir="ltr" contenteditable="false"> <a
moz-do-not-send="true"
href="https://github.com/alkacon/opencms-core/issues/385"
style="text-decoration: none !important;"
class="yahoo-enhancr-cardlink" target="_blank"
rel="noreferrer" id="yui_3_16_0_ym19_1_1460962553862_4905">
<table class="card yahoo-ignore-table" style="border:1px
solid #e0e4e9;width:288px;border-right:3px solid
#010101;background-color:#fff;"
id="yui_3_16_0_ym19_1_1460962553862_4904" height="80"
width="288" border="0" cellpadding="0" cellspacing="0">
<tbody id="yui_3_16_0_ym19_1_1460962553862_4903">
<tr id="yui_3_16_0_ym19_1_1460962553862_4902">
<td style="width:80px;background-color:#000;"
width="80px"> <img moz-do-not-send="true"
src="https://s.yimg.com/vv//api/res/1.2/VuVahWFOGIXoQGTaeMX4HA--/YXBwaWQ9bWFpbDtmaT1maWxsO2g9ODA7dz04MA--/https://avatars2.githubusercontent.com/u/18396574?v=3&s=400.cf.jpg"
style="width:80px; vertical-align:middle;"
data-id="cdba7c77-c15b-bfa3-74ee-1611d666ea51"
height="80" width="80"> </td>
<td id="yui_3_16_0_ym19_1_1460962553862_4901"> <img
moz-do-not-send="true" class="card-object"
src="https://s.yimg.com/nq/storm/assets/enhancrV2/23/logos/github.png"
style="margin-top:4px;margin-left:10px;"
data-id="d4660d55-3971-6b32-9458-305619a32417"
height="24" width="24">
<h2 class="card-title"
style="font-size:13px;color:#000000;font-family:'Helvetica
Neue', Helvetica, Arial,
sans-serif;text-decoration:none
!important;margin:4px 0 4px
10px;word-break:break-word;"
id="yui_3_16_0_ym19_1_1460962553862_5102">OpenCMS
JSP template · Issue #385 · alk...</h2>
</td>
<td class="card-share-container"><br>
</td>
</tr>
</tbody>
</table>
</a></div>
<div id="yui_3_16_0_ym19_1_1460962553862_4896"><br>
</div>
<div id="yui_3_16_0_ym19_1_1460962553862_4436"><br>
</div>
<div id="yui_3_16_0_ym19_1_1460962553862_4436">I am using
opencms 10. </div>
<div id="yui_3_16_0_ym19_1_1460962553862_4437"><br
id="yui_3_16_0_ym19_1_1460962553862_4438">
</div>
<div id="yui_3_16_0_ym19_1_1460962553862_4439">Well have created
simple jsp template by following [this][1] link</div>
<div id="yui_3_16_0_ym19_1_1460962553862_4440"><br
id="yui_3_16_0_ym19_1_1460962553862_4441">
</div>
<div id="yui_3_16_0_ym19_1_1460962553862_4442"> <%@page
buffer="none" session="false" trimDirectiveWhitespaces="true"
%></div>
<div id="yui_3_16_0_ym19_1_1460962553862_4443"> <%@ taglib
prefix="cms" uri=<a class="moz-txt-link-rfc2396E" href="http://www.opencms.org/taglib/cms">"http://www.opencms.org/taglib/cms"</a> %></div>
<div id="yui_3_16_0_ym19_1_1460962553862_4444"> <%@ taglib
prefix="c" uri=<a class="moz-txt-link-rfc2396E" href="http://java.sun.com/jsp/jstl/core">"http://java.sun.com/jsp/jstl/core"</a> %></div>
<div id="yui_3_16_0_ym19_1_1460962553862_4445"> <%@ taglib
prefix="fmt" uri=<a class="moz-txt-link-rfc2396E" href="http://java.sun.com/jsp/jstl/fmt">"http://java.sun.com/jsp/jstl/fmt"</a> %></div>
<div id="yui_3_16_0_ym19_1_1460962553862_4446"> <%@ taglib
prefix="fn" uri=<a class="moz-txt-link-rfc2396E" href="http://java.sun.com/jsp/jstl/functions">"http://java.sun.com/jsp/jstl/functions"</a> %></div>
<div id="yui_3_16_0_ym19_1_1460962553862_4447"> <!DOCTYPE
html></div>
<div id="yui_3_16_0_ym19_1_1460962553862_4448"> <html></div>
<div id="yui_3_16_0_ym19_1_1460962553862_4449"> <span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1460962553862_4450"> </span><head></div>
<div id="yui_3_16_0_ym19_1_1460962553862_4451"> </div>
<div id="yui_3_16_0_ym19_1_1460962553862_4452"> <span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1460962553862_4453"> </span><cms:enable-ade
/></div>
<div id="yui_3_16_0_ym19_1_1460962553862_4454"> </div>
<div id="yui_3_16_0_ym19_1_1460962553862_4455"> <span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1460962553862_4456"> </span></head></div>
<div id="yui_3_16_0_ym19_1_1460962553862_4457"> <span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1460962553862_4458"> </span><body></div>
<div id="yui_3_16_0_ym19_1_1460962553862_4459"> </div>
<div id="yui_3_16_0_ym19_1_1460962553862_4460"> <span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1460962553862_4461"> </span><div
id="header"></div>
<div id="yui_3_16_0_ym19_1_1460962553862_4462"> <span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1460962553862_4463"> </span><cms:container
name="headercontainer" type="header" maxElements="1" /> <span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1460962553862_4464"> </span></div>
<div id="yui_3_16_0_ym19_1_1460962553862_4465"> <span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1460962553862_4466"> </span></div></div>
<div id="yui_3_16_0_ym19_1_1460962553862_4467"> </div>
<div id="yui_3_16_0_ym19_1_1460962553862_4468"> <span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1460962553862_4469"> </span><div
id="window"></div>
<div id="yui_3_16_0_ym19_1_1460962553862_4470"> <span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1460962553862_4471"> </span><cms:container
name="centrecontainer" type="center" maxElements="8"
detailview="true"/></div>
<div id="yui_3_16_0_ym19_1_1460962553862_4472"> <span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1460962553862_4473"> </span></div></div>
<div id="yui_3_16_0_ym19_1_1460962553862_4474"> </div>
<div id="yui_3_16_0_ym19_1_1460962553862_4475"> <span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1460962553862_4476"> </span><div
id="footerColumn"></div>
<div id="yui_3_16_0_ym19_1_1460962553862_4477"> <span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1460962553862_4478"> </span><cms:container
name="footercontainer" type="footer" maxElements="1"/></div>
<div id="yui_3_16_0_ym19_1_1460962553862_4479"> <span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1460962553862_4480"> </span></div></div>
<div id="yui_3_16_0_ym19_1_1460962553862_4481"> <span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1460962553862_4482"> </span></body></div>
<div id="yui_3_16_0_ym19_1_1460962553862_4483"> </html></div>
<div id="yui_3_16_0_ym19_1_1460962553862_4484"><br
id="yui_3_16_0_ym19_1_1460962553862_4485">
</div>
<div id="yui_3_16_0_ym19_1_1460962553862_4486">say it is
`main.jsp`. After this I created a new `container-page` say
`my-fist-template.html` and set following property </div>
<div id="yui_3_16_0_ym19_1_1460962553862_4487"><br
id="yui_3_16_0_ym19_1_1460962553862_4488">
</div>
<div id="yui_3_16_0_ym19_1_1460962553862_4489"> template =
/system/modules/my.first.module/templates/main.jsp</div>
<div id="yui_3_16_0_ym19_1_1460962553862_4490"><br
id="yui_3_16_0_ym19_1_1460962553862_4491">
</div>
<div id="yui_3_16_0_ym19_1_1460962553862_4492">Then I created a
new *resource type* say *myResourceType*. I also created xsd
and formatter for newly created resource type. </div>
<div id="yui_3_16_0_ym19_1_1460962553862_4493"><br
id="yui_3_16_0_ym19_1_1460962553862_4494">
</div>
<div id="yui_3_16_0_ym19_1_1460962553862_4495">After this I
opened `my-fist-template.html` for editing. I was **unable**
to add layout, simple slider, flexible content etc
(every/default resource types created by opencms) **BUT** I
was able to put my newly created resource type
*`myResourceType`*. </div>
<div id="yui_3_16_0_ym19_1_1460962553862_4496"><br
id="yui_3_16_0_ym19_1_1460962553862_4497">
</div>
<div id="yui_3_16_0_ym19_1_1460962553862_4498">What am I
missing?</div>
<div id="yui_3_16_0_ym19_1_1460962553862_4499"><br
id="yui_3_16_0_ym19_1_1460962553862_4500">
</div>
<div id="yui_3_16_0_ym19_1_1460962553862_4501"><br
id="yui_3_16_0_ym19_1_1460962553862_4502">
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1460962553862_4503"> [1]:
<a moz-do-not-send="true"
href="http://documentation.opencms.org/opencms-documentation/creating-a-website/creating-a-template-jsp/"
class="enhancr2_4dee215d-ba48-4284-7421-0b29d6a2e929"
id="yui_3_16_0_ym19_1_1460962553862_4506">OpenCms
Documentation | Creating a template JSP</a></div>
<div id="yui_3_16_0_ym19_1_1460962553862_4518"><br>
</div>
<div id="enhancr2_4dee215d-ba48-4284-7421-0b29d6a2e929"
class="yahoo-link-enhancr-card ymail-preserve-class
ymail-preserve-style"
style="max-width:400px;font-family:'Helvetica Neue',
Helvetica, Arial, sans-serif;"
data-url="http://documentation.opencms.org/opencms-documentation/creating-a-website/creating-a-template-jsp/"
data-type="yenhancr" data-category="article" data-embed-url=""
data-size="medium" dir="ltr" contenteditable="false"> <a
moz-do-not-send="true"
href="http://documentation.opencms.org/opencms-documentation/creating-a-website/creating-a-template-jsp/"
style="text-decoration:none !important; color: #000
!important;" class="yahoo-enhancr-cardlink" target="_blank"
rel="noreferrer" id="yui_3_16_0_ym19_1_1460962553862_5129">
<table class="card-wrapper yahoo-ignore-table"
style="max-width:400px;"
id="yui_3_16_0_ym19_1_1460962553862_5128" border="0"
cellpadding="0" cellspacing="0">
<tbody id="yui_3_16_0_ym19_1_1460962553862_5127">
<tr id="yui_3_16_0_ym19_1_1460962553862_5126">
<td id="yui_3_16_0_ym19_1_1460962553862_5125"
width="400"><br>
</td>
</tr>
</tbody>
</table>
</a></div>
</div>
<pre wrap="">
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
</div>
</body>
</html>