alvin alexander
alvin alexander

favorite books

categories

  • alaska (25)
  • android (138)
  • best practices (63)
  • career (50)
  • colorado (21)
  • cvs (27)
  • design (33)
  • drupal (120)
  • eclipse (6)
  • funny (3)
  • gadgets (108)
  • git (15)
  • intellij (4)
  • java (429)
  • jdbc (26)
  • swing (74)
  • jsp (9)
  • latex (26)
  • linux/unix (289)
  • mac os x (315)
  • mysql (54)
  • ooa/ood (11)
  • perl (156)
  • php (97)
  • postgresql (17)
  • programming (43)
  • ruby (56)
  • scala (640)
  • sencha (23)
  • servlets (10)
  • technology (84)
  • testing (13)
  • uml (24)
  • zen (47)

How to get/read a cookie in the Play Framework 2

By Alvin Alexander. Last updated: June 30, 2017

Just a quick note today that if you need to read a cookie when using the Play Framework 2, one of these approaches should work:

// option 1
request.cookies.get("name")

// option 2
Http.Request.current().cookies.get("name")

You can find more information about these approaches at these links:

  • Play Framework cookies (java)
  • Setting and discarding cookies (Part of 'Manipulating Results')
  • Scala Session and Flash
scala
  • Parsing “real world” HTML with Scala, HTMLCleaner, and StringEscapeUtils
  • Scala Vector informational and mathematical methods (syntax, examples)
  • Scala: How to declare a variable (var) before using it in try/catch/finally
  • sttp, a Scala HTTP client
  • How to create Scala object instances without using the “new” keyword (apply)

books i’ve written

  • The Rocky Mountains, Longmont, Colorado, December 31, 2020
  • Rocky Mountain National Park, Jan. 3, 2018
  • 12,000 feet up in Rocky Mountain National Park (Estes Park area)
  • Two moose in Rocky Mountain National Park
  • Someone is always in the way
Links:
front page alvin on twitter search privacy terms & conditions
alvinalexander.com
is owned and operated by
Valley Programming, LLC
 
In regards to links to Amazon.com, As an Amazon Associate
I (Valley Programming, LLC) earn from qualifying purchases
 
This website uses cookies: learn more
java
java applets
java faqs
misc content
java source code
test projects
lejos
Perl
perl faqs
programs
perl recipes
perl tutorials
Unix
man (help) pages
unix by example
tutorials
source code
warehouse
java examples
drupal examples
misc
privacy policy
terms & conditions
subscribe
unsubscribe
wincvs tutorial
function point
analysis (fpa)
fpa tutorial
Other
contact me
rss feed
my photos
life in alaska
how i sold my business
living in talkeetna, alaska
my bookmarks
inspirational quotes
source code snippets
This website uses cookies: learn more

alvinalexander.com is owned and operated by Valley Programming, LLC

In regards to links to Amazon.com, “As an Amazon Associate
I (Valley Programming) earn from qualifying purchases”