Two things to note here:
- Even though JSP’s cannot contain scriptlets written in Kotlin, they can contain scriptlets written in Java and that Java can easily call Kotlin classes thanks to Kotlins’s nice two-way interop. Sweet!!
- JSP EL expressions can reference DTO’s written in Kotlin. And DTO’s are much easier to write in Kotlin.