我制作了一个简单的应用程序,但是当我按下按钮时我遇到了问题它没有回应我能做什么?
这是scala文件&我想要按钮取3个值&以新形式返回新值
@(solutionForm: Form[Socrates])
@import helper._
@main(title = "form 1") {
@form(action = routes.Application.solve, args = 'id -> "solutionform") {
@inputText(field = solutionForm("a"),args = '_label -> " a ="
)@inputText(field = solutionForm("b"),args = '_label -> "b ="
)@inputText(field = solutionForm("c"),args = '_label -> "c ="
) }
<input type="submit" >
}
新表格是:
@(man : String )
@main("solution") {
<h3>the solution for the previous equation is @man </h3>
}
答案 0 :(得分:0)
按钮应该在表单标签内才能工作。
@form() {
<input type="submit">
}