Fun with JSR-168 Portlets – Google Portlet in Sakai

I was reading the uPortal lists and Cris Holdorph of Unicon made the following post:
The google portlet code is here:
http://code.google.com/p/googleportlet/
I will answer questions about the code here, but a more appropriate place would probably be: portlet-user@lists.ja-sig.org which I am also subscribed to.
All of that being said, the googleportlet does not do any web proxying at all. I think the code is interesting, in it’s simplicity, but it is not a general purpose solution to the problem of proxying.
You can also check out all of the articles and blog posts on www.unicon.net. I have several other portlet examples there.
—- Cris J H
So I went to his code site and downloaded the war file. I dropped the war file into a Sakai I had – initially it did not come up because of an empty web.xml. So I put in a stock Pluto 1.1 style web.xml (below) into the file and restarted.
Up it came and worked flawlessly – and of course with no frames.
Screen Shot of Cris Holdorph’s Google Portlet in Sakai
Another nice quick test of Sakai’s JSR-168 support.


<display-name>Google Portlet</display-name>
<servlet>
<servlet-name>GooglePortlet</servlet-name>
<servlet-class>org.apache.pluto.core.PortletServlet</servlet-class>
<init-param>
<param-name>portlet-name</param-name>
<param-value>GooglePortlet</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>GooglePortlet</servlet-name>
<url-pattern>/PlutoInvoker/GooglePortlet</url-pattern>
</servlet-mapping>