<?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: Friendly Error Pages in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/friendly-error-pages/m-p/210456#M163586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use the webscript system to provide an FTL per status, for instance named 404.html.ftl &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Every webscript returning a 404 from it's controller (and which has gotten a redirect set!) will use this template.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Feb 2009 13:04:08 GMT</pubDate>
    <dc:creator>rogier_oudshoor</dc:creator>
    <dc:date>2009-02-24T13:04:08Z</dc:date>
    <item>
      <title>Friendly Error Pages</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/friendly-error-pages/m-p/210455#M163585</link>
      <description>I have been researching a way to create and maintain a set of friendly error pages for my site which is currently running under Alfresco 2.9. The site relies mainly on webscripts for creation of its pages. I have found where I can create response templates within each webscript, but I would like to</description>
      <pubDate>Thu, 19 Feb 2009 14:31:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/friendly-error-pages/m-p/210455#M163585</guid>
      <dc:creator>jvanderhoef</dc:creator>
      <dc:date>2009-02-19T14:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Friendly Error Pages</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/friendly-error-pages/m-p/210456#M163586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use the webscript system to provide an FTL per status, for instance named 404.html.ftl &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Every webscript returning a 404 from it's controller (and which has gotten a redirect set!) will use this template.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 13:04:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/friendly-error-pages/m-p/210456#M163586</guid>
      <dc:creator>rogier_oudshoor</dc:creator>
      <dc:date>2009-02-24T13:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Friendly Error Pages</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/friendly-error-pages/m-p/210457#M163587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your response, that worked fine. I was actually trying that but it didn't work unitl I refreshed my webscripts….duh.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 00:31:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/friendly-error-pages/m-p/210457#M163587</guid>
      <dc:creator>jvanderhoef</dc:creator>
      <dc:date>2009-02-26T00:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Friendly Error Pages</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/friendly-error-pages/m-p/210458#M163588</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;Can either of you provide an example?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For a particular webscript I created I am getting a 500 status code returned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a "500.html.ftl" and placed in the same folder as my webscript, refreshed all webscripts. When I get the error message it is still not picking up the "500.html.ftl" file I created.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to specify something in the webscript .js file? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At the moment I use this code when I catch the error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;status.code = 500;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;status.message = err.message;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;status.redirect = true;&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks very much.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 14:55:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/friendly-error-pages/m-p/210458#M163588</guid>
      <dc:creator>scottf</dc:creator>
      <dc:date>2009-06-05T14:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Friendly Error Pages</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/friendly-error-pages/m-p/210459#M163589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nevermind &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Found the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I renamed my 500.html.ftl file to 500.ftl and it works great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the tip.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 16:25:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/friendly-error-pages/m-p/210459#M163589</guid>
      <dc:creator>scottf</dc:creator>
      <dc:date>2009-06-05T16:25:18Z</dc:date>
    </item>
  </channel>
</rss>

