The short answer is yes.
The longer answer follows.
The portlet spec defines the contract between a portlet container and
compliant portlets. The container manages the lifecycle and invocation
of portlets. Typically a portals embeds (or implements it's own)
portlet container and passes portlet requests to the container for
processing.
What you would do to be able to "simply include" a portlets into your
pages would embed the portlet container within your web application.
Your webapp would then pass requests to the portlet container. If you
were to use pluto, you could leverage the pluto portal driver extensively.
One of the biggest enhancements to Pluto 1.1 is making this exact thing
easier for developers like yourself. I would suggest that you check it
out. There is almost no documentation since it's in it's first stages,
however, I believe that it is much more straightforward and should be
pretty easy to follow as you look through the driver code. Basically,
you could leverage the portal driver's tag libs to "include" your
portlets on a page. Your jsp would end up looking something like this:
http://svn.apache.org/repos/asf/portals/pluto/branches/pluto-1.1/pluto-portal/src/main/webapp/WEB-INF/fragments/portlet-skin.jsp
Let me know if you have any questions. I've actually been asked to
write an article on this which will be coming out in about a month or
so. I'm also speaking about this (embedding pluto) at ApacheCon.
Bottom line is that I think what you're asking for is becoming more and
more common.
David
Andreas Schildbach wrote:
Hello everyone,
I am developing and operating a web-application for playing classic
strategy games (http://3moves.net).
As I am always open to new promising technologies, I am thinking about
evaluating portlets. I am planning to wait until Pluto is finished and
Spring 1.3 is out (which will include portlet support) and then give it
a try.
But I don't want to switch over the whole application from my own simple
portal system (based on a layout.jsp which includes several fragments)
to a fully fledged Portal System like JetSpeed. Is it possible to just
include a portlet into a web page, with a tag like <jsp:include/> or
<c:import/>?
I realize that portlets expect some environment, like a user record. On
the other hand, I doubt that I would use this data in my portlets
anytime soon, and maybe there would be the possibility of writing an
adapter?
Regards,
Andreas