I would like to expose some Strings to the a velocity theme in the liferay framework in order to write some HTTP headers used for social network sharing. What is important is that my Controller has to put these Strings to the velocity theme during the render phase.
How can this be done please?
You can always create a custom hook and add custom variable that will be available in theme. Check this link http://www.opensourceforlife.com/2012/06/custom-velocity-variable-in-liferay-61.html