access Alfresco file directory?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2010 06:33 AM
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2010 07:09 AM
…tomcat\shared\classes\alfresco\extension\templates?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2010 08:04 AM
Something like that (untested):
ClassLoader cl = Thread.currentThread().getContextClassLoader();InputStream is = cl.getResourceAsStream("/alfresco/templates/foobar.ftl")
HTHGyro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2010 09:54 AM
../tomcat/shared/classes/alfresco/extension/output/someoutput.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2010 10:22 AM
tomcat\shared\classes\alfresco\extension\templates
as a href in a jsf component in .jsp?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2010 10:55 AM
SInce you may assume that both tomcat/shared/classes and alfresco/WEB-INF/classes are in the classpath, you can access them as resource.
Something like that (untested):HTHClassLoader cl = Thread.currentThread().getContextClassLoader();InputStream is = cl.getResourceAsStream("/alfresco/templates/foobar.ftl")
Gyro
Is there a way I can get an output stream instead of an input stream?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2010 11:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2010 01:39 AM
You probably want to load your script into the alfresco data dictionary rather than the file system.
Thank you for the suggestion, but I wanted to generate an html file to display in a new window from a jsf actionlink. 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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2010 04:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2010 01:02 PM
You probably want to load your script into the alfresco data dictionary rather than the file system.
One question. What is the correct syntax to display html that I've loaded into a node in a jsp page?
I've tried:
<r:template template="#{DialogManager.bean.displayUrl}" />
<%@ include file="${url.context}#{DialogManager.bean.displayUrl}"%>
<jsp:include page="${url.context}#{DialogManager.bean.displayUrl}" />
