• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Devaka Cooray
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
Bartenders:

session

 
Ranch Hand
Posts: 111
jQuery Oracle C++
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am having prblems trying to figure out how to keep session for Assignment Servlets - 4b. The directions seem to say use DataPool to help keep the session but I am not quite sure what object I need to add and how to use get to get the seesion info back to check whether the session is still going or not. I know I am probably making it harder than it is.
Any hints/suggestions Welcome!
 
Amber Woods
Ranch Hand
Posts: 111
jQuery Oracle C++
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Think I figured it out but I still need to test it all and code quite a bit. Still, any suggestions welcome because I feel like I am not doing something right.
 
Amber Woods
Ranch Hand
Posts: 111
jQuery Oracle C++
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I didn't figure it out. Imagine that
What is throwing me is the add( object ) and getting that object back
I just can't seem to get it.
[This message has been edited by Amber Woods (edited June 18, 2001).]
 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Amber, I may not have understood the assignment correctly, but, even though it says so in the directions, I didn't think we really used sessions until Assignment 5. The way to get the DataPool info is not through a session variable, but by passing it another way.
 
Amber Woods
Ranch Hand
Posts: 111
jQuery Oracle C++
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well the assignment for Servlets 4b says:
"Purpose: To learn about maintaining a session and creating an HTML form from scratch"
So I was thinking that DataPool was something to use to keep session instead of using httpsession object but maybe I just don't get it. Anyway, I'm still chugging away at this one.
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you read the JavaDoc on DataPool? http://www.javaranch.com/doc/index.html
 
Now I am super curious what sports would be like if we allowed drugs and tiny ads.
The new gardening playing cards kickstarter is now live!
https://www.kickstarter.com/projects/paulwheaton/garden-cards
reply
    Bookmark Topic Watch Topic
  • New Topic