sugumar
sugumar

Reputation: 25

how to write java code inside scala template in java play framework

is it possible to write java code inside the scala template. if yes any sample code please

  @while(@resultSet.next()) {
                   println("Mani");
                 String [email protected]("name");
                Int  [email protected]("id");
                 println("Name:"+name)
                 print( name + ", " + in);

                  }

Upvotes: 0

Views: 885

Answers (1)

Voidpaw
Voidpaw

Reputation: 920

As Jesper says here: https://stackoverflow.com/a/6357926/2935464 you will be able to access your regular Java classes and objects in Scala as long as you use the Scala syntax.

Upvotes: 1

Related Questions