SCJP, SCWCD
Originally posted by Raef Kandeel:
1) I used sessions to keep track of the inputted values and then I discovered that these sessions cannot keep values for more than 2 "hyperlinks". Meaning that, I input a value, press next, enter another value press next and then press two backs and the session information is gone.
2) Then I discovered there is something named stateless sessions and there is something named statefull sessions. And that each session has an ID and that this ID must be passed around to servers in cookies so as for the information to persist.
Then I tried to use ready-made code. Just to test the concept and see whether it would work or not. The code is found at http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/hall/ShowSession.java. And the next thing that I know is that it is telling me it cannot resolve javax.servlet.*. I, of course can download the API and work with it, but, correct me if I am wrong, there is an easier way of doing things.
If that's the case, something's wrong with your code.
SCJP, SCWCD
SCJP, SCWCD
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
SCJP, SCWCD
Consider Paul's rocket mass heater. |