No you don't have to hve the servlet response for that Just check if the Response is a WebResponse That already has the setHeader methods
On Nov 27, 2007 9:13 PM, Edvin Syse <[EMAIL PROTECTED]> wrote: > > hmm this way i have never seen it before :) > > Hehe.. I know it might be a bit unconventional, but I think I have a good > reason for it. Since the application is "virtualhosted", the > session holds a path to the "filearchive" for the current instance (set > based on the http host of the request), and the /files url of the > site should serve up the files in the current site's filearchive. > > > then overwrite the ResourceStreamRequestTargets: > > * > > > > protected* *void* configure(*final* RequestCycle requestCycle, > > *final*Response response, > > *final* IResourceStream resourceStream) > > and set some headers in the response and call super. > > To do that I think I need to get to the HttpServletResponse, right? How > can I retrieve that from the Response object? It seems to be of type > org.apache.wicket.protocol.http.BufferedWebResponse. > > -- Edvin > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >