I'm a bit late to the party, but the Spring Portlet MVC way of doing it -- for those who are using that framework -- I have used:
1
2 protected ModelAndView handleRenderRequestInternal(RenderRequest renderRequest, RenderResponse renderResponse) throws Exception {
3
4 Map<String,Object> model = new HashMap<String,Object>();
5
6 try {
7
8 renderResponse.setTitle("This be a test, yarrr.");
9 ... other code
10 ... other code
11 ... other code
12
13
14 } catch (Exception e) {
15 e.printStackTrace();
16 }
17
18 ModelAndView modelAndView = new ModelAndView("Home", model);
19
20 return modelAndView;
21 }
My portlet then rendered with that title.
Jon
Update: Ah, I see that Jelmer mentioned this on the second post. Well, here's an example of it's use...)
Firmi prego dentro per inbandierare questo come inadeguato.