Re: [Resin-interest] contentType='x-application/xslt' - meaning hijacked?

2007-02-20 Thread John Steel
Anoop K Achuthan wrote: Hi John, You can write a Response Filter which sets the Content type of your choise. The filter could be added as the last filter in the chain to make sure that no other filter is changing it's content type. Thanks - I get it. However, it didn't do what

Re: [Resin-interest] contentType='x-application/xslt' - meaning hijacked?

2007-02-20 Thread John Steel
Pablo Saavedra wrote: The filter order is defined by the filter-mapping element in the web.xml. Make sure that your filter-mapping is after the xslt filter's. Regards. Thanks - its like this, is this ok? filter filter-name='xslt' filter-class='com.caucho.filters.XsltFilter'/

Re: [Resin-interest] contentType='x-application/xslt' - meaning hijacked?

2007-02-20 Thread Pablo Saavedra
Usually you define the filters first, and then the mappings, but I don't think you'll get any problem. That should work ok. Regards. On 20/02/07, John Steel [EMAIL PROTECTED] wrote: Pablo Saavedra wrote: The filter order is defined by the filter-mapping element in the web.xml. Make sure

Re: [Resin-interest] contentType='x-application/xslt' - meaning hijacked?

2007-02-20 Thread John Steel
try { System.out.println (Within ContentType filter ... ); chain.doFilter (request, response); ((HttpServletResponse) response).addHeader(ContentTypeFilter, PROCESSED); response.setContentType(text/html); } catch (Exception e) { e.printStackTrace();

[Resin-interest] contentType='x-application/xslt' - meaning hijacked?

2007-02-19 Thread John Steel
test.jsp here http://www.caucho.com/resin-3.1/doc/xslt-filter.xtp shows you need to add this and the filter to the web-app in order for it to trigger resin to performing the transformation. I'm having an issue based on that example where basically I need to also control the contentType for

Re: [Resin-interest] contentType='x-application/xslt' - meaning hijacked?

2007-02-19 Thread Anoop K Achuthan
Hi John, You can write a Response Filter which sets the Content type of your choise. The filter could be added as the last filter in the chain to make sure that no other filter is changing it's content type. -Anoop John Steel wrote: test.jsp here