Spent some time trying to figure out how to post to a Liferay portlet. Although it’s not inherently difficult it can be if you have never done it before and are still learning all about portlets. I really prefer doing this kind of thing using Spring 3 MVC, or restful services, but in this case it really was not an option due to requirements to keep dependencies on external libraries and other modules at a minimum. Code is not complete but it should get the point across. Plus I wanted to test embedding a Gist.