<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]--></head><body><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_4066"></div><div id="yui_3_16_0_ym19_1_1460962553862_4436">I put the my question <a 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 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;" contenteditable="false" data-url="https://github.com/alkacon/opencms-core/issues/385" data-type="yenhancr" data-category="object" data-embed-url="" data-size="mini" dir="ltr"> <a 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" cellpadding="0" cellspacing="0" border="0" width="288" height="80" style="border:1px solid #e0e4e9;width:288px;border-right:3px solid #010101;background-color:#fff;" id="yui_3_16_0_ym19_1_1460962553862_4904"> <tbody id="yui_3_16_0_ym19_1_1460962553862_4903"><tr id="yui_3_16_0_ym19_1_1460962553862_4902"> <td width="80px" style="width:80px;background-color:#000;"> <img src="https://s.yimg.com/vv//api/res/1.2/VuVahWFOGIXoQGTaeMX4HA--/YXBwaWQ9bWFpbDtmaT1maWxsO2g9ODA7dz04MA--/https://avatars2.githubusercontent.com/u/18396574?v=3&s=400.cf.jpg" width="80" height="80" style="width:80px; vertical-align:middle;" data-id="cdba7c77-c15b-bfa3-74ee-1611d666ea51"> </td> <td id="yui_3_16_0_ym19_1_1460962553862_4901"> <img class="card-object" src="https://s.yimg.com/nq/storm/assets/enhancrV2/23/logos/github.png" width="24" height="24" style="margin-top:4px;margin-left:10px;" data-id="d4660d55-3971-6b32-9458-305619a32417"> <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"></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="http://www.opencms.org/taglib/cms" %></div><div id="yui_3_16_0_ym19_1_1460962553862_4444"> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %></div><div id="yui_3_16_0_ym19_1_1460962553862_4445"> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %></div><div id="yui_3_16_0_ym19_1_1460962553862_4446"> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %></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 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;" contenteditable="false" 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"> <a 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" cellpadding="0" cellspacing="0" border="0" style="max-width:400px;" id="yui_3_16_0_ym19_1_1460962553862_5128"> <tbody id="yui_3_16_0_ym19_1_1460962553862_5127"><tr id="yui_3_16_0_ym19_1_1460962553862_5126"> <td width="400" id="yui_3_16_0_ym19_1_1460962553862_5125"> <table class="card yahoo-ignore-table" cellpadding="0" cellspacing="0" border="0" width="100%" style="max-width:400px;" id="yui_3_16_0_ym19_1_1460962553862_5124"> <tbody id="yui_3_16_0_ym19_1_1460962553862_5123"><tr id="yui_3_16_0_ym19_1_1460962553862_5122"> <td class="card-primary-image-cell" style="background:#000 url('https://s.yimg.com/vv//api/res/1.2/XBqvTv8gMQDgdwxiNgIbFA--/YXBwaWQ9bWFpbDtmaT1maWxsO2g9MjAwO3c9NDAw/http://documentation.opencms.org/export/system/modules/com.alkacon.opencms.documentation/images/OpenCms_Logo_800_transparent_24bit.png_1570634188.png.cf.jpg') no-repeat center center;background-size:cover;height:200px;position:relative;" background="https://s.yimg.com/vv//api/res/1.2/XBqvTv8gMQDgdwxiNgIbFA--/YXBwaWQ9bWFpbDtmaT1maWxsO2g9MjAwO3c9NDAw/http://documentation.opencms.org/export/system/modules/com.alkacon.opencms.documentation/images/OpenCms_Logo_800_transparent_24bit.png_1570634188.png.cf.jpg" bgcolor="#000000" valign="top" id="yui_3_16_0_ym19_1_1460962553862_5121"> <!--[if gte mso 9]><v:rect fill="true" stroke="false" style="width:400px;height:218px;position:absolute;top:0;left:0;"><v:fill type="frame" color="#000000" src="https://s.yimg.com/vv//api/res/1.2/XBqvTv8gMQDgdwxiNgIbFA--/YXBwaWQ9bWFpbDtmaT1maWxsO2g9MjAwO3c9NDAw/http://documentation.opencms.org/export/system/modules/com.alkacon.opencms.documentation/images/OpenCms_Logo_800_transparent_24bit.png_1570634188.png.cf.jpg"/></v:rect><![endif]--> <table class="yahoo-ignore-table" cellpadding="0" cellspacing="0" border="0" valign="top" style="width:100%;" id="yui_3_16_0_ym19_1_1460962553862_5120"> <tbody id="yui_3_16_0_ym19_1_1460962553862_5119"><tr id="yui_3_16_0_ym19_1_1460962553862_5118"> <td style="background:transparent url('https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png') repeat left top;height:200px;" background="https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png" bgcolor="transparent" valign="top" id="yui_3_16_0_ym19_1_1460962553862_5117"> <!--[if gte mso 9]><v:rect fill="true" stroke="false" style="width:400px;height:218px;position:absolute;top:-18px;left:0;"><v:fill type="pattern" color="#000000" src="https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png"/><v:textbox inset="0,0,20px,0"><![endif]--> <table class="yahoo-ignore-table" height="185" style="width:100%;height:185px;min-height:185px;" id="yui_3_16_0_ym19_1_1460962553862_5116"> <tbody id="yui_3_16_0_ym19_1_1460962553862_5115"><tr id="yui_3_16_0_ym19_1_1460962553862_5114"> <td class="card-richInfo2" style="text-align:left;text-align:left;padding:15px 0 0 15px;vertical-align:top;"> </td> <td class="card-actions" style="text-align:right;padding:15px 15px 0 0;vertical-align:top;" id="yui_3_16_0_ym19_1_1460962553862_5113"> <div class="card-share-container"></div> </td> </tr> </tbody></table> <!--[if gte mso 9]></v:textbox></v:rect><![endif]--> </td> </tr> </tbody></table> </td> </tr> <tr> <td> <table class="card-info yahoo-ignore-table" align="center" cellpadding="0" cellspacing="0" border="0" style="background:#fff;position:relative;z-index:2;width:95%;max-width:380px;border:1px solid #e0e4e9;border-bottom:3px solid #000000;margin-top:-40px;margin-left:auto;margin-right:auto;"> <tbody><tr> <td style="background-color:#ffffff;padding:16px 0 16px 12px;vertical-align:top;"> </td> <td style="vertical-align:middle;padding:16px 12px;width:99%;"> <h2 class="card-title" style="font-size: 16px; line-height:19px; margin:0 0 4px 0;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;word-break:break-word;">OpenCms Documentation | Creating a template JSP</h2> <div class="card-description" style="font-size:11px;line-height:15px;color:#999;word-break:break-word;">Learn how to get from an HTML prototype of your website layout to a template.</div> </td> <td style="text-align:right;padding:16px 12px 16px 0;"> </td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr> </tbody></table> </a></div><div><br></div><div></div></div></body></html>