OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | exoplatform List | July 2008 Index

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

[exoplatform] Re: Can I call servlet from a portlet


Hi Lieu Hoang,

Look at wiki page [http://wiki.exoplatform.org/xwiki/bin/view/PC/Portlet+deployment] for exo portlet deployment configuration.

Part of the code for include servlet::
===========================================================
...
  protected void doView(RenderRequest request, RenderResponse response)
    throws PortletException, IOException {

    response.setContentType("text/html; charset=utf-8");
    PortletContext context = getPortletContext();
    // Servlet to include.
    PortletRequestDispatcher rd = context.getRequestDispatcher("/demo");
    rd.include(request, response);
  }
...
===========================================================

Sources of demo portlets are available to browse at http://fisheye.exoplatform.org/browse/projects/portlet-container/trunk/applications/demos/src/main/java/org/exoplatform/services/portletcontainer/demo/portlet

HTH,
Alexey.

On Tue, Jul 15, 2008 at 8: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.