protected void flash ( String name , String value ) { /*if (session().get(Context.FLASH_SESSION_KEYWORD) == null) { session().put(Context.FLASH_SESSION_KEYWORD, new HashMap<String, Object>()); } ((Map<String, Object>) session().get(Context.FLASH_SESSION_KEYWORD)).put(name, value);*/ //context.setFlash(name, value); context . getFlash ( ) . put ( name , value ) ; }
Sends value to flash . Flash survives one more request . Using flash is typical for POST - > REDIRECT - > GET pattern