I am working with Play! Framework 1.2.4 and have no problems creating static 404 pages. However, I would like to make the 404 page a little more dynamic.
Is there a "controller" for a 404 page? If not, where do I do all my logic that would traditionally go in the controller?
There is no controller for a 404 page. Play try to find a route and if this is not possible throw a NotFound Result that shows the 404 page.
You may create a catch all controller that do this job so this controller will handle the 404 case instead of Play itself.
* /.* NotFoundRouter.notFoundPage
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With