You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-user@portals.apache.org by Terry lee <Sp...@sqatester.com> on 2004/09/15 11:22:45 UTC

Does portlet container support additional ContentType???

Hi all,

I wonder whether pluto support other MIME?

For example , image/gif , image/jpeg. 

When i call getResponseContentTypes method , always return "text/html" even if i add MIME type as below to portlet.xml: 


... ... 
<supports> 
<mime-type>image/gif</mime-type> 
</supports> 
<supports> 
<mime-type>image/jpeg</mime-type> 
</supports> 
... ... 
 
whenever i call response.setContentType("image/jpeg"), there always comes some exceptions. any ideas?? thanks!

regards,


Terry 


thanks in advance!

_____________________________________________________________
Join SQAtester.com Community  ---> http://www.sqatester.com/testersarea/joinus.htm