#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Posts
    3
    Rep 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
  2. #2
  3. dont click here
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Posts
    409
    Rep Power
    12
    use the servlet to create javascript code with variables..
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Posts
    3
    Rep 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
  6. #4
  7. dont click here
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Posts
    409
    Rep Power
    12
    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.

IMN logo majestic logo threadwatch logo seochat tools logo