cancel
Showing results for 
Search instead for 
Did you mean: 

accessing a database table from a Web Script

mittaldeepak01
Champ in-the-making
Champ in-the-making
Hi All,

I am quite new to Alfresco and its Web Scripts framework and its capabilities (please be gentle with me Smiley Happy

Basically, I need to write a web script which can access (read/write) a custom database table? I have 2 questions regarding this:

- Is is possible to do with Web Scripts?
- If possible, is it possible to *not* to use Java but only Java script to achieve this functionality?

Regards,

-Deepak
2 REPLIES 2

zaizi
Champ in-the-making
Champ in-the-making
Yes, you can do this using web scripts but will have to use Java. You need to write a custom java backed web script http://wiki.alfresco.com/wiki/Web_Scripts#Java-backed_Web_Scripts.

You could always create a generic java backed web script that saves data to a database. Then you can just use re-use.

mittaldeepak01
Champ in-the-making
Champ in-the-making
Thanks for the useful answer Zaizi.

-Deepak