Codebehind - ServletContext

2007-08-10 Thread Nils-Helge Garli
I'm trying out the codebehind stuff in a portlet with the portlet created by the maven struts2 portlet archetype. It used to work until I did some changes with initialization of the ServletContext in the portlet, and now all I get is: SEVERE: Could not execute actionjava.lang.RuntimeException: jav

[s2] portlet code not using valuestack for looking up request attributes

2007-08-10 Thread James Holmes
I'm moving a Struts 2 app from a standard Web app to being a portlet. During the process, my Displaytag instances started failing. They weren't finding any data. I tracked down the problem to the fact that Displaytag looks for the list of data it displays in request scope. This worked fine when

Re: [s2] portlet code not using valuestack for looking up request attributes

2007-08-10 Thread Nils-Helge Garli
Hm...this might be a tricky one. The portlet spec says nothing about request wrappers, and trying to wrap the portlet requests might result in undetermined behaviour. I tried onece, with pluto, but pluto relies on it's internal implementation classes, so you'll get a classcastexception if it encoun