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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:12:59+00:00 2026-06-18T02:12:59+00:00

I probably have misconfigured my route file for play-1.2.5 – below is the relevant

  • 0

I probably have misconfigured my route file for play-1.2.5 – below is the relevant route file part & the URL being used:

URL:

GET /application/autoComplete?term=mac 

Route:

GET     /autoComplete/{term}     controllers.Application.AutoCompleteTerm

I also have the following route defined but its not getting picked up:

GET     /autoComplete/     controllers.Application.AutoCompleteTerm

The route does not get hit – instead, I get a template not found exception:

play.exceptions.TemplateNotFoundException: Template not found

Any suggestions to help troubleshoot this will be quite welcome. thanks

  • 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-18T02:13:00+00:00Added an answer on June 18, 2026 at 2:13 am

    The route:

    GET     /autoComplete/{term}     controllers.Application.AutoCompleteTerm
    

    …is wrong. It should be like this:

    GET     /autoComplete/{term}     Application.autoCompleteTerm
    

    This would correspond to the following URL:

    GET http://127.0.0.1:9000/autoComplete/mac
    

    The corresponding method in Application would look like this:

    public static void autoCompleteTerm(String term) {
        ...
    }
    

    The URL:

    GET http://127.0.0.1:9000/autoComplete?term=mac
    

    …would need the following route:

    GET     /autoComplete     Application.autoCompleteTerm
    

    …and the same method as above:

    public static void autoCompleteTerm(String term) {
        ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use And & Or within an If statement. I probably have
If you've used Google Wave or iGoogle you have probably seen that you can
I will probably have done it manually by the time I get an answer
In trying to get a @OneToMany relationship between Article and HeaderField I probably have
Probably have wrong title,but I don't know how to describe it. int x=0x4a; h=!(0x80000000000&(0x39+(~x+1)));
I'm working on a larger Web based Project, that probably will have to handle
Error: End tag for 'optgroup' which is not finished. You have probably failed to
i have another (probably unanswered) question about map views. I have a map view
well i have most probably an extremly stupid problem but could not figure it
I have what is probably a really simple, studid question but I can't find

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.