Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Joe Ess

How to save Javascript values later to use in java program?  RSS feed

Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this script. I want to use this individual value later in my java program for validation of results. How to do it. Or atleast can i save these values into the database???

Country Code: XXXXXXX

Country Name: XXXXXXX



Region Name: XXXXXXXXX

Latitude: XXXXX

Longitude: XXXXXXXXX

Postal Code: XXXXXXXXX

Thanks & Regards

Author and ninkuma
Posts: 66784
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How much later in the program? After subsequent page loads? If so, then the most common means is to save them in the server-side session. How you do that depends on how you are powering your backend code. Servlets? PHP? Something else?

If you need to save it on the client side, then cookies is the most common way. If you have the luxury of only supporting the latest browsers, there's also HTML5 local storage.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!