お世話になってます。
今、Playframeworkである文字を表記したいと考えているのですが、
compile時に、以下のようなエラーが発生して困ってます。
お分かりの方居られましたら、ご教示下さい。
〇エラー内容
①app/controllers/Application.java
package controllers; import play.mvc.*; import akka.util.LineNumbers.Result; import play.*; import views.html.*; public class Application extends Controller{ public static Result index() { String title ="Play Nitta!!"; String message="これはJavaを使ったPlayのサンプルです!"; return ok(index.render( title, message)); } }
②index.scala.html
@(title: String, message: String) @main(title) { <h1>@title</h1> <p>@message</p> }
③conf/routes
GET / controllers/Application/index
以上、宜しくお願いします。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。