« Return to Thread: UrlMapping

Re: UrlMapping

by Peter Ledbrook-2 :: Rate this Message:

Reply to Author | View in Thread

> How do I get at the file suffix as part of the mappings (e.g. a constraint)?
>
> I'd also like to handle .xml and .html files differently -- something akin to responds_to in Rails.

Look in the User Guide under "Content Negotiation". To get the file
extensions, you need to set this configuration option in
Config.groovy:

  grails.mime.file.extensions = false

Cheers,

Peter

--
Software Engineer
G2One, Inc.
http://www.g2one.com/

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: UrlMapping

LightInTheBox - Buy quality products at wholesale price