I want to pass a string to a "form" page template and then post the form and redirect to the previous page by using the string that I have sent. The reason that I want to do it is to prevent the POST form issue of staying in the page after POST.
I created this get :
GET /form/:page controllers.Pages.form(page)
and the controller look like that
public static Result form(String page) {
return ok(form.render(userForm),page);
}
and I'm trying to route like that :
<a href="@routes.Pages.form(page)" class="btn btn-info">send </a>
What is your preferred way to pass parameters between views?