Hi. "[EMAIL PROTECTED]" wrote : secon choice afair... look at the spec
Well, I specified 2 mime types supported as in the 2nd example, but I have no content type set even I change the order of interceptors like this: <jboss> | <container-configuration> | <interceptors> | <interceptor> | <interceptor-class>org.jboss.portal.core.invocation.UserContextInterceptor</interceptor-class> | </interceptor> | <interceptor> | <interceptor-class>org.jboss.portal.core.invocation.ContentTypeInterceptor</interceptor-class> | </interceptor> | <interceptor> | <interceptor-class>org.jboss.portal.core.invocation.ViewInterceptor</interceptor-class> | </interceptor> | <interceptor> | <interceptor-class>org.jboss.portal.server.invocation.portal.MainDispatcherInterceptor</interceptor-class> | </interceptor> | </interceptors> | </container-configuration> | </jboss> Then if I call getContentType on the request I get the "null" value. It is very strange since the ContentTypeInterceptor was invoked before and the MIME type was set to the correct one.... And one more thing - I have found this in the org.jboss.portal.server.invocation.portal packege: public class ContentTypeInterceptor | implements Interceptor | { | public Object invoke(Invocation invocation) | { | String contentType = "text/html"; | PortalResponse response = (PortalResponse)invocation.getAttachment(AttachmentKey.PORTAL_RESPONSE); | response.setContentType(contentType); | return invocation.invokeNext(); | } | } Can this be some how related to the "null content type" problem ? Regards, Arturas View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866880#3866880 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866880 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development