OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | exoplatform List | July 2008 Index

<--  Date Index  --> <--  Thread Index  -->

[exoplatform] Can I call servlet from a portlet


Forwarded to the mailing list to keep the thread

---------- Forwarded message ----------
From: Tugdual Grall <tugdual.grall@xxxxxxxxxxxxxxx>

Hello LieuHoang

Yes you can dispacth the portlet request to a servlet, using the
javax.portlet.PortletRequestDispatcher class.

However this could be a little more complex in you case since you are
probably using some "advanced" HTTP request like direct call to an
AJAX/REST resource.

The issue is this case it is not the call to the "servlet" but more
the communication between the browser and the server (your servlet),
and taking in consideration the fact that you have the Portal in the
middle. One idea here will be to use the JSR-286 Resource management,
take a look to the use of the
GenericPortlet.serveResource(ResourceRequest, ResourceResponse)
method.

If this is not sufficient to help you "portletizing" your application,
feel free to post more information on the list, and specify what are
you exact issues when implementing/testing the portlet.


Also, you are talking about a Chat portlet, I do not know which
components you are using from eXo Platform, but eXo is currently
developping a chat application (XMPP based Server + Portlet client),
that could answer your needs without developing anything. The
application is currently under development and available in the trunk
so you can test it from sources, in the LiveRoom project.
Let me know if you have have any question on eXo LiveRoom & Chat module.

Regards
Tugdual Grall
eXo Platofrm
http://www.exoplatform.orn

On Tue, Jul 15, 2008 at 7:29 PM, LieuHoang <ht_lieu@xxxxxxxxx> wrote:
>
> I have a Chat servlet which works perfectly by itself. Now I want to put it
> into a portlet and deploy this portlet on eXo platform. Can I do that? If
> yes, please tell me how to call a servlet from a portlet? Thank you very
> much.
> --
> View this message in context: 
> http://www.nabble.com/Can-I-call-servlet-from-a-portlet-tp18470717p18470717.html
> Sent from the eXo Platform mailing list archive at Nabble.com.
>
>
>
> --
> You receive this message as a subscriber of the exoplatform@xxxxxxx mailing 
> list.
> To unsubscribe: mailto:exoplatform-unsubscribe@xxxxxxx
> For general help: mailto:sympa@xxxxxxx?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 2006-2007, OW2 Consortium | contact | webmaster.