<?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: access Alfresco file directory? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/access-alfresco-file-directory/m-p/241412#M194542</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;SInce you may assume that both tomcat/shared/classes and alfresco/WEB-INF/classes are in the classpath, you can access them as resource.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like that (untested):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;ClassLoader cl = Thread.currentThread().getContextClassLoader();&lt;BR /&gt;InputStream is = cl.getResourceAsStream("/alfresco/templates/foobar.ftl")&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;HTH&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gyro&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jun 2010 12:04:22 GMT</pubDate>
    <dc:creator>gyro_gearless</dc:creator>
    <dc:date>2010-06-11T12:04:22Z</dc:date>
    <item>
      <title>access Alfresco file directory?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-alfresco-file-directory/m-p/241410#M194540</link>
      <description>with Java, from within Alfresco, what is the correct syntax, what classes do I call, to access the Alfresco file directory?&amp;nbsp; For example if I want to access with Java the templates located under …\WEB-INF\classes\alfresco\templates\&amp;nbsp; how can I do this?</description>
      <pubDate>Fri, 11 Jun 2010 10:33:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-alfresco-file-directory/m-p/241410#M194540</guid>
      <dc:creator>esource</dc:creator>
      <dc:date>2010-06-11T10:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: access Alfresco file directory?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-alfresco-file-directory/m-p/241411#M194541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;for instance how can we access with Java:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;…tomcat\shared\classes\alfresco\extension\templates?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jun 2010 11:09:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-alfresco-file-directory/m-p/241411#M194541</guid>
      <dc:creator>esource</dc:creator>
      <dc:date>2010-06-11T11:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: access Alfresco file directory?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-alfresco-file-directory/m-p/241412#M194542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;SInce you may assume that both tomcat/shared/classes and alfresco/WEB-INF/classes are in the classpath, you can access them as resource.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like that (untested):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;ClassLoader cl = Thread.currentThread().getContextClassLoader();&lt;BR /&gt;InputStream is = cl.getResourceAsStream("/alfresco/templates/foobar.ftl")&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;HTH&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gyro&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jun 2010 12:04:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-alfresco-file-directory/m-p/241412#M194542</guid>
      <dc:creator>gyro_gearless</dc:creator>
      <dc:date>2010-06-11T12:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: access Alfresco file directory?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-alfresco-file-directory/m-p/241413#M194543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the post, but how can I access the freemarker template in a way that would allow me to apply against a node or array or set of data?&amp;nbsp; Also how can I create a file and write to it in the Alfresco file system?&amp;nbsp; For instance: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;../tomcat/shared/classes/alfresco/extension/output/someoutput.html&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jun 2010 13:54:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-alfresco-file-directory/m-p/241413#M194543</guid>
      <dc:creator>esource</dc:creator>
      <dc:date>2010-06-11T13:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: access Alfresco file directory?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-alfresco-file-directory/m-p/241414#M194544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;also how can I call&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;tomcat\shared\classes\alfresco\extension\templates&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;as a href in a jsf component in .jsp?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jun 2010 14:22:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-alfresco-file-directory/m-p/241414#M194544</guid>
      <dc:creator>esource</dc:creator>
      <dc:date>2010-06-11T14:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: access Alfresco file directory?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-alfresco-file-directory/m-p/241415#M194545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;SInce you may assume that both tomcat/shared/classes and alfresco/WEB-INF/classes are in the classpath, you can access them as resource.&lt;BR /&gt;Something like that (untested):&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;ClassLoader cl = Thread.currentThread().getContextClassLoader();&lt;BR /&gt;InputStream is = cl.getResourceAsStream("/alfresco/templates/foobar.ftl")&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;HTH&lt;BR /&gt;Gyro&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way I can get an output stream instead of an input stream?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jun 2010 14:55:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-alfresco-file-directory/m-p/241415#M194545</guid>
      <dc:creator>esource</dc:creator>
      <dc:date>2010-06-11T14:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: access Alfresco file directory?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-alfresco-file-directory/m-p/241416#M194546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You probably want to load your script into the alfresco data dictionary rather than the file system.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jun 2010 15:54:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-alfresco-file-directory/m-p/241416#M194546</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2010-06-11T15:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: access Alfresco file directory?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-alfresco-file-directory/m-p/241417#M194547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You probably want to load your script into the alfresco data dictionary rather than the file system.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the suggestion, but I wanted to generate an html file to display in a new window from a jsf actionlink.&amp;nbsp; If I store the generated html in a node, how do I retrieve it and call it from the jsp opening it in a new window?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jun 2010 05:39:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-alfresco-file-directory/m-p/241417#M194547</guid>
      <dc:creator>esource</dc:creator>
      <dc:date>2010-06-12T05:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: access Alfresco file directory?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-alfresco-file-directory/m-p/241418#M194548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, I have it working.&amp;nbsp; Thank you for all the suggestions!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jun 2010 08:59:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-alfresco-file-directory/m-p/241418#M194548</guid>
      <dc:creator>esource</dc:creator>
      <dc:date>2010-06-12T08:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: access Alfresco file directory?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-alfresco-file-directory/m-p/241419#M194549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You probably want to load your script into the alfresco data dictionary rather than the file system.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;One question.&amp;nbsp; What is the correct syntax to display html that I've loaded into a node in a jsp page?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;r:template template="#{DialogManager.bean.displayUrl}" /&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;%@ include file="${url.context}#{DialogManager.bean.displayUrl}"%&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;jsp:include page="${url.context}#{DialogManager.bean.displayUrl}" /&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jun 2010 17:02:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-alfresco-file-directory/m-p/241419#M194549</guid>
      <dc:creator>esource</dc:creator>
      <dc:date>2010-06-13T17:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: access Alfresco file directory?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-alfresco-file-directory/m-p/241420#M194550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;SInce you may assume that both tomcat/shared/classes and alfresco/WEB-INF/classes are in the classpath, you can access them as resource.&lt;BR /&gt;Something like that (untested):&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;ClassLoader cl = Thread.currentThread().getContextClassLoader();&lt;BR /&gt;InputStream is = cl.getResourceAsStream("/alfresco/templates/foobar.ftl")&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;HTH&lt;BR /&gt;Gyro&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;it found a resource I placed under alfresco/WEB-INF/classes but not under tomcat/shared/classes.&amp;nbsp; would you know how I can locate resources placed under tomcat/shared/classes?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 07:51:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-alfresco-file-directory/m-p/241420#M194550</guid>
      <dc:creator>esource</dc:creator>
      <dc:date>2010-06-15T07:51:12Z</dc:date>
    </item>
  </channel>
</rss>

