0

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);

                  }
2
  • This can help: stackoverflow.com/questions/11368995/… Commented Oct 31, 2013 at 9:15
  • Ouch, for real, a resultset in PlayFramework view? Transform that to some other object before giving it to the view. Commented Oct 31, 2013 at 15:52

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.