<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem to access pagecontext from FTL in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-to-access-pagecontext-from-ftl/m-p/307570#M260700</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The registered object url is java class DefaultURLHelper. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DefaultURLHelper.getContext() method will call RequestContext.getContextPath(),which is just request.getContextPath().&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So url.context should be equals to request.getContextPath().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco dose not put HttpRequestObject into freemarker model,but it put HttpRequestHashModel object into the model under the key "Request".&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jun 2014 05:29:55 GMT</pubDate>
    <dc:creator>kaynezhang</dc:creator>
    <dc:date>2014-06-06T05:29:55Z</dc:date>
    <item>
      <title>Problem to access pagecontext from FTL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-to-access-pagecontext-from-ftl/m-p/307569#M260699</link>
      <description>Hi all,I have an Rich Client application with a FTL file that includes some ExtJS files.The context of the installation is not /alfresco but /DOC/alfresco.The problem is that in this snippet contained in a javascript declaration… src="${url.context}/uirnet/browser/i18n.js?${url.context}" id="i18n"th</description>
      <pubDate>Thu, 05 Jun 2014 13:31:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-to-access-pagecontext-from-ftl/m-p/307569#M260699</guid>
      <dc:creator>abarisone</dc:creator>
      <dc:date>2014-06-05T13:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to access pagecontext from FTL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-to-access-pagecontext-from-ftl/m-p/307570#M260700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The registered object url is java class DefaultURLHelper. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DefaultURLHelper.getContext() method will call RequestContext.getContextPath(),which is just request.getContextPath().&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So url.context should be equals to request.getContextPath().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco dose not put HttpRequestObject into freemarker model,but it put HttpRequestHashModel object into the model under the key "Request".&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 05:29:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-to-access-pagecontext-from-ftl/m-p/307570#M260700</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-06-06T05:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to access pagecontext from FTL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-to-access-pagecontext-from-ftl/m-p/307571#M260701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;so you're telling me that using freemarker there's no other object than url to access request context path?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My webscript has no controller since it is only uesd to build the page using root objects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;cite&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco dose not put HttpRequestObject into freemarker model,but it put HttpRequestHashModel object into the model under the key "Request".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/cite&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you be more precise? Is this "Request" object accessible from the freemarker template through a call like ${Request} or something similar?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 07:01:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-to-access-pagecontext-from-ftl/m-p/307571#M260701</guid>
      <dc:creator>abarisone</dc:creator>
      <dc:date>2014-06-09T07:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to access pagecontext from FTL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-to-access-pagecontext-from-ftl/m-p/307572#M260702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as I know you can only use url object to access request context path&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes exception "Request" ,objects("RequestParameters","Session","Application") are accessable in freemarker.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But "Request" object is not HttpServletRequest but HttpRequestHashModel,you can use it to get request attribute.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 08:50:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-to-access-pagecontext-from-ftl/m-p/307572#M260702</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-06-09T08:50:44Z</dc:date>
    </item>
  </channel>
</rss>

