Hi Stefan, thanx for your answer.
Too bad there is no API for this. And no I do not know the MIME types because I do not code the deployment descriptor.
I am creating a framework to ease the devlopmemnt of portlet applications. One of teh things it does is setting the mime type.
Now I wanted to check the mime type to make sure I set it to something applicable and prevent exceptions being thrown.
Marcel
Stefan Hepper <[EMAIL PROTECTED]> wrote on 18-05-2005 14:42:59:
> Marcel Dullaart wrote:
>
> >
> > Hi all,
> >
> > Is it anyway possible in portlet code, to retrieve the mimetype(s)
> > supported by the portlet from the portlet descriptor?
> >
> > Just before calling RenderResponse.setContentType(), I'd like to check
> > if the mime type to be set is supported.
> >
> > Thanx,
> > Marcel
>
> Hi,
> no there is no API for this, however, as you also coded the deployment
> descriptor you should now the MIME types your portlet supports, right?
>
> Stefan
- Mime type in portlet descriptor Marcel Dullaart
- Re: Mime type in portlet descriptor Stefan Hepper
- Marcel Dullaart
