File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes session Attribute's value getting changed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "session Attribute Watch "session Attribute New topic

session Attribute's value getting changed

Utkal Keshari

Joined: Jul 27, 2006
Posts: 5
in my ADD.jsp page I am setting the Date and time in session attribute .
There are two another pages in which i am getting the date and time .

In my view page If I click refresh then I got the same value. But if I close the page and view it from my menu then new time is given.While I am opening the page from my menu I never hit my ADD.jsp page But still then date and time value is changed .

Please Help me to solve the problem
[ August 03, 2006: Message edited by: Bear Bibeault ]
Ajit Roy

Joined: Aug 03, 2006
Posts: 2
Hi Utkal,

Definetely your session object has got changed. By looking at the above i am not able to figure out the exact flow of your application.

Are you modfying the session object somwhere else or your Add.jsp is called in between. Hopefully this will help in tracing the problem.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63838

"Utkal Utkal",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

JavaRanch Sheriff

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: session Attribute's value getting changed
It's not a secret anymore!