If I need to make a new object out a class in a Play view, how can I import the class namespace in the view? Sure, most of the times I can just create the new object in the controller and pass it to the view, but I need to create it based on conditions only available while rendering the view.
Thanks.
Just use the fully qualified object name. Example