Play framework flash

play framework flash

case class Flash (data: Map[String, String]) extends Product with Serializable. HTTP Flash scope. Flash data are encoded into an HTTP cookie, and can only. flash values are kept for one redirect. If you call render in your controller at the end of your method, you do not issue a redirect, so values will be. See https://www. JavaSessionFlash. Sign up or log in StackExchange. Seb Cesbron 3, 9 Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about bet365 affiliate login developers or posting ads with us. Generally we can store data up to 4KB in Session or Flash. Post as a guest Name.

Play framework flash - Wer

If you need to cache some data related to a specific session, you can use the Play built-in cache mechanism and use the session to store a unique ID to associate the cached data with a specific user. Attributes final Definition Classes AnyRef. Then in the index action, you could check if the success message exists in the flash scope, and if so, render it:. Stack Overflow works best with JavaScript enabled. Ok I see your requirement!!


A web app in 10 minutes using Play framework

0 Kommentare zu „Play framework flash

Hinterlasse eine Antwort

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *