<html><head></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_1460963279584_12816" dir="ltr"><span id="yui_3_16_0_ym19_1_1460963279584_13035">I put added </span><span style="font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;" id="yui_3_16_0_ym19_1_1460963279584_13036">template=</span><b style="font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;" id="yui_3_16_0_ym19_1_1460963279584_13037"><u id="yui_3_16_0_ym19_1_1460963279584_13038">provider=</u></b><b style="font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;" id="yui_3_16_0_ym19_1_1460963279584_13039"><u id="yui_3_16_0_ym19_1_1460963279584_13040">org.opencms.loader.CmsDefaultTemplateContextProvider </u></b>to the template provider's property. But result is same, still unable to pick the (default) resources.</div><div id="yui_3_16_0_ym19_1_1460963279584_12816"><span><br></span></div><div id="yui_3_16_0_ym19_1_1460963279584_12816"><span>Thanks,</span></div><div id="yui_3_16_0_ym19_1_1460963279584_12816"><span>Junaid</span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Monday, April 18, 2016 2:00 PM, Christoph Kukulies <kuku@physik.rwth-aachen.de> wrote:<br></font></div>  <br><br> <div class="y_msg_container"><div id="yiv1376052238"><div>
    <div class="yiv1376052238moz-cite-prefix">Isn't it that the template property
      wouldn't have  to look something like:<br clear="none">
      <br clear="none">
      template= <b><u>provider=</u></b><b><u>org.opencms.loader.CmsDefaultTemplateContextProvider</u></b>,template=/system/modules/my.first.module/templates/main.jsp<br clear="none">
      <br clear="none">
      <div class="yiv1376052238yqt0710846805" id="yiv1376052238yqtfd19687"><br clear="none">
      Am 18.04.2016 um 08:59 schrieb Junaid Sarfraz:<br clear="none">
    </div></div><div class="yiv1376052238yqt0710846805" id="yiv1376052238yqtfd98589">
    </div><blockquote type="cite"><div class="yiv1376052238yqt0710846805" id="yiv1376052238yqtfd66902">
      </div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="yiv1376052238yqt0710846805" id="yiv1376052238yqtfd65717">
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4436">I put the my
          question <a rel="nofollow" shape="rect" class="yiv1376052238edited-link-editor" id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4919" target="_blank" href="http://stackoverflow.com/questions/36687220/opencms-jsp-template">here</a> and <a rel="nofollow" shape="rect" class="yiv1376052238edited-link-editor yiv1376052238enhancr2_a8ea4f91-ccc3-06e9-ce4a-920a5f882bd8" id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4829" target="_blank" href="https://github.com/alkacon/opencms-core/issues/385">here</a> too</div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4918"><br clear="none">
        </div>
        <div class="yiv1376052238yahoo-link-enhancr-card yiv1376052238ymail-preserve-class yiv1376052238ymail-preserve-style" dir="ltr" id="yiv1376052238enhancr2_a8ea4f91-ccc3-06e9-ce4a-920a5f882bd8" 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"> <a rel="nofollow" shape="rect" class="yiv1376052238yahoo-enhancr-cardlink" id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4905" target="_blank" href="https://github.com/alkacon/opencms-core/issues/385" style="text-decoration:none;">
            <table class="yiv1376052238card yiv1376052238yahoo-ignore-table" id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4904" style="border:1px solid #e0e4e9;width:288px;border-right:3px solid #010101;background-color:#fff;" height="80" width="288" border="0" cellpadding="0" cellspacing="0"><tbody id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4903"><tr id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4902"><td colspan="1" rowspan="1" style="width:80px;background-color:#000;" width="80px"> <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" style="width:80px;vertical-align:middle;" height="80" width="80"> </td><td colspan="1" rowspan="1" id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4901"> <img class="yiv1376052238card-object" src="https://s.yimg.com/nq/storm/assets/enhancrV2/23/logos/github.png" style="margin-top:4px;margin-left:10px;" height="24" width="24">
                    <h2 class="yiv1376052238card-title" id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_5102" style="font-size:13px;color:#000000;font-family:'Helvetica                       Neue', Helvetica, Arial, sans-serif;text-decoration:none;margin:4px 0 4px 10px;">OpenCMS
                      JSP template · Issue #385 · alk...</h2>
                  </td><td colspan="1" rowspan="1" class="yiv1376052238card-share-container"><br clear="none">
                  </td></tr></tbody></table>
          </a></div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4896"><br clear="none">
        </div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4436"><br clear="none">
        </div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4436">I am using
          opencms 10. </div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4437"><br clear="none" id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4438">
        </div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4439">Well have created
          simple jsp template by following [this][1] link</div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4440"><br clear="none" id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4441">
        </div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4442">    <%@page
          buffer="none" session="false" trimDirectiveWhitespaces="true"
          %></div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4443">    <%@ taglib
          prefix="cms" uri=<a rel="nofollow" shape="rect" class="yiv1376052238moz-txt-link-rfc2396E" target="_blank" href="http://www.opencms.org/taglib/cms">"http://www.opencms.org/taglib/cms"</a> %></div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4444">    <%@ taglib
          prefix="c" uri=<a rel="nofollow" shape="rect" class="yiv1376052238moz-txt-link-rfc2396E" target="_blank" href="http://java.sun.com/jsp/jstl/core">"http://java.sun.com/jsp/jstl/core"</a> %></div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4445">    <%@ taglib
          prefix="fmt" uri=<a rel="nofollow" shape="rect" class="yiv1376052238moz-txt-link-rfc2396E" target="_blank" href="http://java.sun.com/jsp/jstl/fmt">"http://java.sun.com/jsp/jstl/fmt"</a> %></div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4446">    <%@ taglib
          prefix="fn" uri=<a rel="nofollow" shape="rect" class="yiv1376052238moz-txt-link-rfc2396E" target="_blank" href="http://java.sun.com/jsp/jstl/functions">"http://java.sun.com/jsp/jstl/functions"</a> %></div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4447">    <!DOCTYPE
          html></div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4448">    <html></div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4449">    <span id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4450" style="white-space:pre-wrap;"> </span><head></div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4451">    </div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4452">    <span id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4453" style="white-space:pre-wrap;">         </span><cms:enable-ade
          /></div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4454">    </div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4455">    <span id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4456" style="white-space:pre-wrap;"> </span></head></div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4457">    <span id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4458" style="white-space:pre-wrap;"> </span><body></div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4459">    </div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4460">    <span id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4461" style="white-space:pre-wrap;">         </span><div
          id="header"></div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4462">    <span id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4463" style="white-space:pre-wrap;">                 </span><cms:container
          name="headercontainer" type="header" maxElements="1" />    <span id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4464" style="white-space:pre-wrap;">   </span></div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4465">    <span id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4466" style="white-space:pre-wrap;">         </span></div></div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4467">    </div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4468">    <span id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4469" style="white-space:pre-wrap;">         </span><div
          id="window"></div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4470">    <span id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4471" style="white-space:pre-wrap;">                 </span><cms:container
          name="centrecontainer" type="center" maxElements="8"
          detailview="true"/></div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4472">    <span id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4473" style="white-space:pre-wrap;">         </span></div></div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4474">    </div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4475">    <span id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4476" style="white-space:pre-wrap;">         </span><div
          id="footerColumn"></div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4477">    <span id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4478" style="white-space:pre-wrap;">                 </span><cms:container
          name="footercontainer" type="footer" maxElements="1"/></div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4479">    <span id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4480" style="white-space:pre-wrap;">         </span></div></div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4481">    <span id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4482" style="white-space:pre-wrap;"> </span></body></div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4483">    </html></div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4484"><br clear="none" id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4485">
        </div>
        <div id="yiv1376052238yui_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="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4487"><br clear="none" id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4488">
        </div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4489">    template =
          /system/modules/my.first.module/templates/main.jsp</div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4490"><br clear="none" id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4491">
        </div>
        <div id="yiv1376052238yui_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="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4493"><br clear="none" id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4494">
        </div>
        <div id="yiv1376052238yui_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="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4496"><br clear="none" id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4497">
        </div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4498">What am I
          missing?</div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4499"><br clear="none" id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4500">
        </div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4501"><br clear="none" id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4502">
        </div>
        <div dir="ltr" id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4503">  [1]:
          <a rel="nofollow" shape="rect" class="yiv1376052238enhancr2_4dee215d-ba48-4284-7421-0b29d6a2e929" id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4506" target="_blank" href="http://documentation.opencms.org/opencms-documentation/creating-a-website/creating-a-template-jsp/">OpenCms
            Documentation | Creating a template JSP</a></div></div>
        <div id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_4518"><br clear="none">
        </div>
        <div class="yiv1376052238yahoo-link-enhancr-card yiv1376052238ymail-preserve-class yiv1376052238ymail-preserve-style" dir="ltr" id="yiv1376052238enhancr2_4dee215d-ba48-4284-7421-0b29d6a2e929" 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"> <a rel="nofollow" shape="rect" class="yiv1376052238yahoo-enhancr-cardlink" id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_5129" target="_blank" href="http://documentation.opencms.org/opencms-documentation/creating-a-website/creating-a-template-jsp/" style="text-decoration:none;color:#000;">
            <table class="yiv1376052238card-wrapper yiv1376052238yahoo-ignore-table" id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_5128" style="max-width:400px;" border="0" cellpadding="0" cellspacing="0"><tbody id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_5127"><tr id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_5126"><td colspan="1" rowspan="1" id="yiv1376052238yui_3_16_0_ym19_1_1460962553862_5125" width="400"><br clear="none">
                  </td></tr></tbody></table>
          </a></div>
      </div>
      <pre></pre>
    </blockquote>
    <br clear="none">
    <div class="yiv1376052238moz-signature">-- <br clear="none">
      Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
    </div><div class="yiv1376052238yqt0710846805" id="yiv1376052238yqtfd37016">
  </div></div></div><br>_______________________________________________<br clear="none">This mail is sent to you from the opencms-dev mailing list<br clear="none">To change your list options, or to unsubscribe from the list, please visit<br clear="none"><a shape="rect" href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><div class="yqt0710846805" id="yqtfd64098"><br clear="none"><br clear="none"><br clear="none"><br clear="none"></div><br><br></div>  </div> </div>  </div></div></body></html>