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 8138123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:23:43+00:00 2026-06-06T11:23:43+00:00

Play tutorial shows a way to bind dynamic parameter to URL: GET /clients/:id controllers.Clients.show(id:

  • 0

Play tutorial shows a way to bind dynamic parameter to URL:

GET /clients/:id controllers.Clients.show(id: Long)

I want to do exactly the same thing in my app. But when I write GET /Category/getAttributes/:id controllers.Category.getAttributes(id) and go to http://localhost:9000/Category/getAttributes?id=4fce5fc51712ccf77afa7439 I receive Action not found error with my routes listed below. Proper route is there.

The question is: what am I missing? Routing in my PLay app works fine for other requests, this one is the only one with dynamic parameter.

  • 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-06-06T11:23:45+00:00Added an answer on June 6, 2026 at 11:23 am

    Use String type, I doubt if 4fce5fc51712ccf77afa7439 can be considered as a Long:

    GET /clients/:id    controllers.Clients.show(id: String)
    

    Of course don’t forget to fix the type of id in your controllers and models

    Edit: Ech, I missed second important change, URL for this route should be without ?id=:

    http://localhost:9000/Category/getAttributes/4fce5fc51712ccf77afa7439
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to play video from a URL via HTTP. I read Media Tutorial
I'm following the Play Framework 2.0 tutorial for Java and get this error when
I'm trying to figure out the best way to play a tutorial video in
Im trying to use Postgresql with Play for their Yabe tutorial and get this
I'm getting started with Play 2.0 by following along with the tutorial. I'm hitting
Play with it here: http://jsbin.com/ocicu4/4/edit Simple Accordion, I only want one section open at
in play functional tests I am executing a request to some of my controllers
I just saw the first Git tutorial at http://blip.tv/play/Aeu2CAI . How does Git store
I am new to play framework. tried to follow the tutorial http://www.playframework.org/documentation/1.2.4/guide2 when i
So i’v been going though the tutorial on: http://jqueryfordesigners.com/play-school-easy-ajax-load/ (site seems a bit slow

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.