I have a problem with routing in Play Framework 2.0.2. When I type into browser subdirectory which doesnt exist (etc. localhost/directory/) I get page:
Action not found For request 'GET /directory/'.
What do I need add into routes file if I want on every subdirectory which doesn’t exist run etc. controllers.Application.show(page = "error")?
Thanks for any help
Use Global object for custom
onHandlerNotFound()and render custom content instead of redirecting it to other resource, ie:(create new view as well:
app/views/error.scala.htmland stylize it as you wish)