Foren
Hitting the database in standard portlet
Ishan Sahore, geändert vor 11 Jahren.
Hitting the database in standard portlet
Junior Member Beiträge: 56 Beitrittsdatum: 26.04.12 Neueste Beiträge
Hi all,
I want to know if we can access the MySQL database with code written in a standard portlet(made using eclipse) to make the portlet dynamic so that data is fetched from the database and displayed in the portlet.
Any help is appreciated.
Thanks,
Ishan
I want to know if we can access the MySQL database with code written in a standard portlet(made using eclipse) to make the portlet dynamic so that data is fetched from the database and displayed in the portlet.
Any help is appreciated.
Thanks,
Ishan
Raja Nagendra Kumar, geändert vor 11 Jahren.
RE: Hitting the database in standard portlet
Expert Beiträge: 484 Beitrittsdatum: 02.03.06 Neueste Beiträge
Portlet can use external database like any normal JSP pages..
However it is advised to use Liferay expando framework http://www.liferay.com/community/wiki/-/wiki/Main/Expando.
Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
However it is advised to use Liferay expando framework http://www.liferay.com/community/wiki/-/wiki/Main/Expando.
Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
David H Nebinger, geändert vor 11 Jahren.
RE: Hitting the database in standard portlet
Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste BeiträgeRaja Nagendra Kumar:
However it is advised to use Liferay expando framework http://www.liferay.com/community/wiki/-/wiki/Main/Expando.
What? That doesn't answer the OP's question...
Yes you can access data from the database. Always use Service Builder to access the database though, and never your own connection/sql.