<?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 DeclarativeWebScript in Alfresco 4.0 in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/declarativewebscript-in-alfresco-4-0/m-p/265448#M218578</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;i recently installed Alfresco 4.0.d and I'm verifying if the implementations done for Alfresco 3.4 work also with Alfresco 4.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I implemented a lot of DeclarativeWebScript and i override the executeImpl method as described in the documentation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;@Override&lt;BR /&gt;protected Map&amp;lt;String, Object&amp;gt; executeImpl(WebScriptRequest req, Status status, Cache cache) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; HttpServletRequest servletReq = ((WebScriptServletRequest) req).getHttpServletRequest();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ….&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;/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;In Alfresco 3.4 i retrieved the HttpServletRequest in order to retrieve the request parameters. By executing the declarativewebscript in Alfresco 4.0 i noticed that the HttpServletRequest cast doesn't work anymore, because the WebScriptRequest passed as parameter is a RepositoryContainer@BufferedRequest.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way for retrieving the HttpServletRequest?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Emanuela&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Feb 2012 12:13:47 GMT</pubDate>
    <dc:creator>emmy</dc:creator>
    <dc:date>2012-02-20T12:13:47Z</dc:date>
    <item>
      <title>DeclarativeWebScript in Alfresco 4.0</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/declarativewebscript-in-alfresco-4-0/m-p/265448#M218578</link>
      <description>Hi,i recently installed Alfresco 4.0.d and I'm verifying if the implementations done for Alfresco 3.4 work also with Alfresco 4.0.I implemented a lot of DeclarativeWebScript and i override the executeImpl method as described in the documentation.@Overrideprotected Map&amp;lt;String, Object&amp;gt; executeIm</description>
      <pubDate>Mon, 20 Feb 2012 12:13:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/declarativewebscript-in-alfresco-4-0/m-p/265448#M218578</guid>
      <dc:creator>emmy</dc:creator>
      <dc:date>2012-02-20T12:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: DeclarativeWebScript in Alfresco 4.0</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/declarativewebscript-in-alfresco-4-0/m-p/265449#M218579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For getting the request parameter which are passed during call of webscript I do not think you need to type cast it to the HTTPservletRequest object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can directly use the WebscriptRequest object to get the request parameter's value.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 13:30:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/declarativewebscript-in-alfresco-4-0/m-p/265449#M218579</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2012-02-20T13:30:03Z</dc:date>
    </item>
  </channel>
</rss>

