Fórum

Hitting the database in standard portlet

Ishan Sahore, modificado 11 Anos atrás.

Hitting the database in standard portlet

Junior Member Postagens: 56 Data de Entrada: 26/04/12 Postagens Recentes
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
thumbnail
Raja Nagendra Kumar, modificado 11 Anos atrás.

RE: Hitting the database in standard portlet

Expert Postagens: 484 Data de Entrada: 02/03/06 Postagens Recentes
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
thumbnail
David H Nebinger, modificado 11 Anos atrás.

RE: Hitting the database in standard portlet

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
Raja 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.