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: Re: Can I call servlet from a portlet


It would be better to put in the same application.

On Thu, Jul 17, 2008 at 1:56 PM, LieuHoang <ht_lieu@xxxxxxxxx> wrote:

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.



--
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.