playframework - play-framework 2.0, is it possible to add a GET variable through the reverse router? -


In a way of my controller, called PageController , I have Return Redirect (route page controller.page_view ("main", "home"));

This goes to / main / home How can I add a GET variable to it, for example / main / home> redirect = 0 ?

I have done your job, if I understand your question:

 < Code> public static result GO_TO_OVERVIEW = redirect (routes. Bookmarks.index 0, "description", "acc", ""));   

And my route announcement looks like this:

  Get / Bookmark Controller The public static result index (int page, string string, string order, string filter) {if (sortBy.isEmpty (): Bookmarks.index (p: int? =),   

Receive it works for you?

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

jsp - Google line chart x-axis shrinks on transition -

java - Reaching JTextField in a DocumentListener -