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


Should I put my servlet files into somewhere in the portlet project? My
servlet have 5 classes inside a package named "MyChat".

Alexey Zavizionov-2 wrote:
> 
> 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.
> 

-- 
View this message in context: 
http://www.nabble.com/Can-I-call-servlet-from-a-portlet-tp18470717p18505999.html
Sent from the eXo Platform mailing list archive at Nabble.com.



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

Reply via email to:

Powered by MHonArc.

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