Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 19th, 2003, 02:53 PM
sietsevanderl sietsevanderl is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 3 sietsevanderl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation Storing and using servlet values in java

Goodday all,

I really would like to be able to store and use servlet values and thus values I use in HTML (via javascript)!! Does anyone know a way to do this?
There must be a better way then building a cookie in which I can store the values and then read them them out with java...

Thanks!
sietse

Reply With Quote
  #2  
Old February 19th, 2003, 03:22 PM
Shocka's Avatar
Shocka Shocka is offline
dont click here
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 409 Shocka User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 35 m
Reputation Power: 7
use the servlet to create javascript code with variables..

Reply With Quote
  #3  
Old February 19th, 2003, 04:57 PM
sietsevanderl sietsevanderl is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 3 sietsevanderl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi, thanks...

But my question wasn't complete. Sorry about that.
I want to store (or use) the javascript variables in java again. So how can I do that?

sietse

Reply With Quote
  #4  
Old February 19th, 2003, 05:04 PM
Shocka's Avatar
Shocka Shocka is offline
dont click here
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 409 Shocka User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 35 m
Reputation Power: 7
create a bean ... beans save states

or create session variables and throw them in there.

i will go indepth a lil more later when i get time, do some reasearch on these 2 techniques.
for the bean set the scope to session.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Storing and using servlet values in java


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT