AnsweredAssumed Answered

Multiple controllers for web scripts?

Question asked by nenad982 on May 8, 2012
Latest reply on May 10, 2012 by mitpatoliya
Hi all,

is it possible to create multiple controllers for the same service? For example, I want to have one Java-backed controller and one Java Script controller for POST Web Script, and to force them to execute in order that I want.

I already have Java Script controller (this is Alfresco's web script, not a custom one), and I need to change response header. I didn't found the way to set response headers in server-side Java Script, so my idea is to create another Java-backed controller, and to set this headers in Java. Is this possible and is this the right way if we have requirement to change response headers and currently we only have Java Script controller?

thank in advance…

Outcomes