Hi Jason, In fact the ServletDispatcherResult can handle this.
The action doExecute methos does only the following: ServletResponse response = ServletActionContext.getResponse(); response.setContentType("application/x-java-jnlp-file"); and flush: response.flush(); So the ServletDispatcherResult just include the template processed output ... works just fine!!! I had to write my own DispatcherResult because I couldn't flush (I'm using Sitemesh and a GZip compression filter). Should be very very nice If I could specify a parameter to the ServletDispatcherResult (just as location) forcing it to not foward and ONLY include (ignoring if I've flushed or request.getAttribute("javax.servlet.include.servlet_path") is not null as it's working for now). What do you think? thanks + Samuel G. Mota + [EMAIL PROTECTED] + 55 (11) 4417 7093 + Business Application Dpt. + Netset Serviços em Tecnologia + a Hypercom Company + http://www.hypercom.com [EMAIL PROTECTED] Sent by: To: [EMAIL PROTECTED] [EMAIL PROTECTED] cc: ceforge.net Subject: RE: [OS-webwork] HttpHeaderResult 19/02/2004 01:48 Please respond to opensymphony-webwork Sounds like we need to beef up what HttpHeaderResult is doing. That or you need to write a custom result for yourself. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Samuel Mota > Sent: Wednesday, February 18, 2004 6:17 AM > To: [EMAIL PROTECTED] > Subject: [OS-webwork] HttpHeaderResult > > Hi, > > I'm trying to get an action returning a JNLP definition file (JWS). > > I just need to change the content-type to "application/x-java-jnlp-file". > > At WW2 package there is a HttpHeaderResult that I suppose would solve my > problem ... but reading the > source it just add ALL entries from the ActionContext ValueStack as an > HttpServletResponse header > .... > > Nothing more ... I'd like to after setting the correct header just run a > velocity view that will > build the XML file. How can I achive that? > > Thanks > > + Samuel G. Mota > + [EMAIL PROTECTED] > + 55 (11) 4417 7093 > + Business Application Dpt. > + Netset Serviços em Tecnologia > + a Hypercom Company > + http://www.hypercom.com > > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id56&alloc_id438&op=ick > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork