cancel
Showing results for 
Search instead for 
Did you mean: 

Display output in JSP from webscriprt

nikes
Champ on-the-rise
Champ on-the-rise
Hello folks,

I have to migrate from Filenet to Alfresco.

We have struts application that interacts with Filenet using Filenet API.

After reading about Alfresco repository API it all recommends WebScripts, however webscropts has its own presentation technique (Presentation in Freemarker). But I want just data to be fetched from Alfresco and display it on our existing Struts application which displays data in particular CSS format.

Is it possible in my case to just fetch data from webscripts and display it in our JSP pages?

Or is there any other API available like Filenet Java API so that I have to just change API calls in my struts application?

Thanks,
Nikesh
2 REPLIES 2

nikes
Champ on-the-rise
Champ on-the-rise
any idea guys?

openpj
Elite Collaborator
Elite Collaborator
You can use Web Script with an XML output format set in descriptor.
In this way you can easily parse an XML response from a Web Script call:
http://wiki.alfresco.com/wiki/Web_Scripts#Content_Negotiation_and_Response_Formats

Otherwise You can use Alfresco Web Service Client that allows you to manage repository via this Java API:
http://wiki.alfresco.com/wiki/Alfresco_Content_Management_Web_Services

If you follow one of the previous ways you can get or store all contents you need and you can use any MVC frameworks for presentation templates.

Hope this helps.