On Oct 27, 2:40 pm, Guillaume Bort <
guillaume.b...@gmail.com> wrote:
> If fact if the Accept header is not suitable for you, you can even use
> different URL path. For example, in conf/routes:
>
> GET /index Application.index
> GET /index.xml Application.index(format:'xml')
>
> You can even extract the format information, dynamically from the URL path
>
> GET /index.{format} Application.index
>
> On Tue, Oct 27, 2009 at 3:17 PM, Guillaume Bort
>
>
>
> <
guillaume.b...@gmail.com> wrote:
> > Yes if you send your request with
>
> > Accept: text/xml
>
> > The render method should automatically switch to index.xml (same for
> > index.txt and index.json).
>
> > Moreover you should find the format in the request.format attribute.
>