Try ActionContext.getContext().getResponse() ?
On 25/9/03 12:35 AM, "Thompson, Kris" ([EMAIL PROTECTED]) penned the words:
Uh, that makes perfect sense but I'm not seeing that method in the ActionContext class and I just did an update from CVS. What am I missing here? I'm talking about WW2 in particular I am looking at the XWork API from java.net. While I do see a getSession I don't see getResponse.
-----Original Message-----
From: Mike Cannon-Brookes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 8:15 AM
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] How does one change the contentType in theresponse?
You can still do that if you want – ActionContext.getResponse().setContentType() should work AFAIK.
Cheers,
Mike
On 24/9/03 11:50 PM, "Thompson, Kris" ([EMAIL PROTECTED]) penned the words:
I need change the MIME type to display a pdf to the browser. In a Servlet based web framework like Expresso or Struts I would simple call response.setContentType(String), hows does one do this in WW2?
Thanks
Kris