Hi this was posted a while ago on the list, was just wondering if anyone has them or anything similar,
am totally stuck at my end ..
 
Essentially, I want to personal certain aspects of a website, i.e. and am trying to embed pluto but so far no portals are getting rendered,
 
I started with the bog standard Helloworld portlet
 
essentially . this is what i need to get done .. on the website create personalised pages accessible a location e.g. http://www.mydomain.com/personal ..
i tried setting this up with a the pluto install but it all went wrong .. ;-)
 
excerpts .. portlet.xml
 
<portlet>
    <description>HelloWorldPortletDescription</description>
    <portlet-name>HelloWorldPortlet</portlet-name>
    <display-name>Hello Portlet</display-name>
    <portlet-class>com.mydoamin.portlets.HelloWorldPortlet</portlet-class>
........
</portlet>
--- END
------> pluto-portal-driver.config.xml
 
<portlet-app>
    <context-path>/pluto</context-path>
    <portlets>
      <portlet name="HelloWorldPortlet"/>
    </portlets>
  </portlet-app>
 
 
 
  <!-- Render configuration which defines the portal pages. -->
  <render-config default="HelloWorldPortlet">
    <page name="HelloWorldPortlet" uri="/WEB-INF/themes/foo.jsp">
     <portlet context="/pluto" name="HelloWorldPortlet"/>
    </page>
  </render-config>
 
 
---- END
 
------ web.xml
<listener>
    <listener-class>org.apache.pluto.driver.PortalStartupListener</listener-class>
  </listener>
 
  <servlet>
    <servlet-name>plutoPortalDriver</servlet-name>
    <display-name>Pluto Portal Driver</display-name>
    <description>Pluto Portal Driver Controller</description>
    <servlet-class>org.apache.pluto.driver.PortalDriverServlet</servlet-class>
  </servlet>
 
 
  <servlet-mapping>
    <servlet-name>plutoPortalDriver</servlet-name>
    <url-pattern>/portal/*</url-pattern>
  </servlet-mapping>
 
---- END
 
---- > foo.jsp
 
<div id="portlets-left-column">
          <c:forEach var="portlet" varStatus="status"
                     items="${currentPage.portletIds}" step="2">
            <c:set var="portlet" value="${portlet}" scope="request"/>
            <c:out value="${pageContext.request.contextPath}"/><br />
             <c:out value="${portlet}"/>
            
            <jsp:include page="portlet-skin.jsp"/>
          </c:forEach>
        </div>
---> END -> pretty much exactly the same as the example webapp in pluto 1.1.  ..
 
 
 
What am i missing ... i keep getting the cross context exceptions .. and am not quite sure why ..
 
 
 
 
 
 
2006/4/30, Shane Paul <[EMAIL PROTECTED]>:
> Well that was a mission, but it is done:
>
> Built the pluto driver+extras from scratch using eclipse and made it
> compatible with spring 2.0M3.
> Embedded it into our website using nothing more than the portlet tags,
> as originally hoped.
> I guess now you know it can be done. Writing some docs on what I did for
> my personal and company records. If anyone is interested, just ask.
>
> Very happy. :)
>
> The only thing I cannot work out is having to add:
> <% new PortalEnvironment(request, response); %>
> To the jsp file before using the portlet tag. I understand it places
> "things" into the request and/or session scope, but I am not sure why
> this does not happen when the tag is called. Will most likely edit the
> source again to add this.
>
> cheers.
>
> Shane
 

Reply via email to