Foros de discusión

Send parameters to a Portlet from external Web App

thumbnail
Jonathan Cruz, modificado hace 6 años.

Send parameters to a Portlet from external Web App

New Member Mensajes: 19 Fecha de incorporación: 18/03/16 Mensajes recientes
Hello Everyone, I have a question, is it possible to send parameters to a portlet in Liferay Portal from an external application?
Can I use JavaScript or Ajax?
I think I need to make some URL Friendly in my portlet in order to access it easier...
What about permissions?
Thanks emoticon
thumbnail
Bijan Vakili, modificado hace 6 años.

RE: Send parameters to a Portlet from external Web App

Expert Mensajes: 375 Fecha de incorporación: 10/03/09 Mensajes recientes
Hi Jonathan,
Welcome to the forums.

1.
is it possible to send parameters to a portlet in Liferay Portal from an external application?
Can I use JavaScript or Ajax?
I think I need to make some URL Friendly in my portlet in order to access it easier...

Yes, though can you clarify your question?
Per other thread, did you try serveResource? What have you tried so far that didn't work?

2.
What about permissions?

There are many ways to restrict access; how does external app authorize now? This will determine how permission's done.
thumbnail
Jonathan Cruz, modificado hace 6 años.

RE: Send parameters to a Portlet from external Web App

New Member Mensajes: 19 Fecha de incorporación: 18/03/16 Mensajes recientes
Thank you for your answer Bijan!
I'm still newbie in Liferay, I'm traying to use a portlet from an external app in order to achieve the portlet gets the parameters and draw a graphics with them.
Permissions (user and password) and parameters are passed through the URL
About serverResource I think they are used for send data to the client and I don't know if I can use it for this goal
Thank you and Greetings!! emoticon