Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5967589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:57:57+00:00 2026-05-22T19:57:57+00:00

In grails if you want to map to particular HTTP methods you normally use

  • 0

In grails if you want to map to particular HTTP methods you normally use according to documentation:

static allowedMethods = [action1: 'GET', action2: 'POST']

but for me it does not always properly map my links.

If I use ‘def’:

def allowedMethods = [action1: 'GET', action2: 'POST']

Then the links are mapped correctly but the resource is then not found when using the link.

What?!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T19:57:58+00:00Added an answer on May 22, 2026 at 7:57 pm

    I’m not sure what your question is here. The documentation clearly states that this property should be static, e.g.

    static allowedMethods = [action1:'POST', action3: 'POST']
    

    so if you don’t declare it as a static property, I’m not surprised that you run into problems.

    If you declare the property as shown above and are sure it’s not working, then report this as a bug. I expect that the Grails developers will be sceptical about whether this is really a bug in their code, so I strongly recommend including in your report a sample application or unit test that demonstrates the problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want a grails service to be able to access Domain static methods, for
I want to use a SortedSet with Grails, but all I get is a
I want to use a service in my Grails application. However, it is always
I want to deploy two Grails WAR under same JBoss server. One I use
I'm trying to inject a Map into a Grails controller. I want to inject
I want to use bcrypt hashing algorithm in my grails project instead of its
i am new to grails and i want to use a method from a
I want to use a snapshot version of the grails quartz plugin. The issue
I'm using Grails and want to use groovyws to call an web-service. But my
I have a strange bug with Grails. I want to get back some persisted

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.