Is PortletServlet Required?
James Cook <[email protected]> Tue, 27 Jul 2010 19:48:41 -0400
| Newsgroups | gmane.comp.jakarta.pluto.user |
|---|---|
| Message-ID | <[email protected]> |
--002215974c5a3eac5c048c67251f
Content-Type: text/plain; charset=ISO-8859-1
I would like to embed the pluto container (or portlet driver) in my web
application. My web application is based on Spring, so I thought that might
make this easier, but now I am not so sure. Basically, a lot of my Spring
goodness in my webapp comes from the fact that I am using Spring's
DispatcherServlet as the basis for my MVC framework. I have the pluto spring
configuration bootstrapping and I have added the PortletFilter and it seems
to start up fine.
However, when I attempt to embed a portlet using this code:
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="pluto" uri="http://portals.apache.org/pluto" %>
<%@ taglib prefix="portlet" uri="http://java.sun.com/portlet" %>
<portlet:defineObjects />
<html>
<head><title>Simple jsp page</title></head>
<body>
Place your content here
<pluto:portlet portletId="rt-portlets.slideshow">
<div class="portlet" id="rt-portlets.slideshow">
<div class="header">
<h2 class="title"><pluto:title></pluto:title></h2>
</div>
<div class="body">
<pluto:render></pluto:render>
</div>
</div>
</pluto:portlet>
</body>
</html>
I receive errors because the portlet registry has no indication of my
portlet registered. It appears that the registration of servlets takes place
during the initialization of the PortletServlet.
If I have to add the PortletServlet and map that to my web app's context
path, does this mean I can no longer use Spring's dispatcher servlet? If so,
doesn't this undermine the ability to embed the pluto portlet driver in an
existing web application?
-- thanks for any guidance
--002215974c5a3eac5c048c67251f
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
I would like to embed the pluto container (or portlet driver) in my web app=
lication. My web application is based on Spring, so I thought that might ma=
ke this easier, but now I am not so sure. Basically, a lot of my Spring goo=
dness in my webapp comes from the fact that I am using Spring's Dispatc=
herServlet as the basis for my MVC framework. I have the pluto spring confi=
guration bootstrapping and I have added the PortletFilter and it seems to s=
tart up fine.<div>
<br></div><div>However, when I attempt to embed a portlet using this code:<=
/div><div><br></div><div><div><%@ page contentType=3D"text/html;cha=
rset=3DUTF-8" language=3D"java" %></div><div><%@ tagli=
b prefix=3D"c" uri=3D"<a href=3D"http://java.sun.com/jsp/jst=
l/core">http://java.sun.com/jsp/jstl/core</a>" %></div>
<div><%@ taglib prefix=3D"pluto" uri=3D"<a href=3D"http:/=
/portals.apache.org/pluto">http://portals.apache.org/pluto</a>" %><=
/div><div><%@ taglib prefix=3D"portlet" uri=3D"<a href=3D=
"http://java.sun.com/portlet">http://java.sun.com/portlet</a>" %></=
div>
<div><portlet:defineObjects /></div><div><html></div><div><h=
ead><title>Simple jsp page</title></head></div><div>&l=
t;body></div><div>=A0=A0 =A0Place your content here</div><div><br></div>=
<div>
=A0=A0 =A0<pluto:portlet portletId=3D"rt-portlets.slideshow"&g=
t;</div><div>=A0=A0 =A0 =A0 =A0<div class=3D"portlet" id=3D&qu=
ot;rt-portlets.slideshow"></div><div>=A0=A0 =A0 =A0 =A0 =A0 =A0<=
div class=3D"header"></div>
<div>=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<h2 class=3D"title">=
<pluto:title></pluto:title></h2></div><div>=A0=A0 =A0 =A0=
=A0 =A0 =A0</div></div><div>=A0=A0 =A0 =A0 =A0 =A0 =A0<div class=
=3D"body"></div><div>=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<plu=
to:render></pluto:render></div>
<div>=A0=A0 =A0 =A0 =A0 =A0 =A0</div></div><div>=A0=A0 =A0 =A0 =A0<=
;/div></div><div>=A0=A0 =A0</pluto:portlet></div><div></body>=
;</div><div><br></div><div></html></div></div><div><br></div><div>I r=
eceive errors because the portlet registry has no indication of my portlet =
registered. It appears that the registration of servlets takes place during=
the initialization of the PortletServlet.</div>
<div><br></div><div>If I have to add the PortletServlet and map that to my =
web app's context path, does this mean I can no longer use Spring's=
dispatcher servlet? If so, doesn't this undermine the ability to embed=
the pluto portlet driver in an existing web application?</div>
<div><br></div><div>-- thanks for any guidance</div>
--002215974c5a3eac5c048c67251f--