I am new to Servoy and I am trying to connect to a postgres db by means of a servlet. However, when I load the servlet I get the following error:
[attachment=1]Screen Shot 2015-02-10 at 8.11.07 PM.png[/attachment]
The code I used to establish the db connection is as follows
[attachment=0]Screen Shot 2015-02-10 at 10.22.35 PM.png[/attachment]
Any thoughts on how I could make this happen to work is highly appreciated!
Thanks in advance…
Hi, thanks for your reply.
The servlet is a connector for some client side JS Dhtml components, which works fine for me , in Servoy. However, on the server side the servlet should load and update the data, against the client side dhtml component, which I cannot manage to get it working, is this possible at all in Servoy?
jtaillie:
on the server side the servlet should load and update the data, against the client side dhtml component, which I cannot manage to get it working, is this possible at all in Servoy?
This is not the way to go, Servoy-clients are not aware of any data changes you do directly on the DB.
I think you’re far better of setting up a RESTful web service and consume these from clients.