@ Route ( method = HttpMethod . POST , uri = "/session/populate" ) public Result populate ( ) { session ( ) . put ( "createdBy" , "wisdom" ) ; session ( ) . put ( "at" , DateFormat . getDateTimeInstance ( ) . format ( new Date ( ) ) ) ; return redirect ( router . getReverseRouteFor ( this , "index" ) ) ; }
Action called to populate the session