One Play 2 Framework App - use both java and scala
java, playframework-2.0, scala
Solution
You can definitevelly use both java and scala since Play is a JVM framework, not a Java nor a Scala one.
So in controllers, you could have a ScalaApplication.scala and a JavaApplication.java if you wish.
And they are callable (redirectable, ...) from each other.
Problem
I want to use morphia for my data access, but I also want to try to use Scala for web content. Is it possible to mix and match Java and Scala files, or if i choose to use Java, i have to stick to Java? I know this is a newbie question, I'm coming from the python/django world, I really like Play, did some Java programming in the past, but Scala looks very interesting, so while I'm a bit afraid to fully jump into Scala, I want to be able to use it alongside Java. Thanks for all the help.