File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes jsp: data overloading Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp: data overloading" Watch "jsp: data overloading" New topic

jsp: data overloading

Ranch Hand

Joined: Jan 24, 2006
Posts: 54
Im using jsp as a front end but sometimes some data is overloading to other user. Means one user is seeing others details instead of his own.
Can anybody help me out on this.

I havn't used session id or cache cleaning. So can you guide me on this how to use this b'coz my program is already being used.
karthikeyan Chockalingam
Ranch Hand

Joined: Sep 06, 2003
Posts: 259
Possible sources of problems are

1. The data to be displayed to the user may be stored in a static variable of the java UI data objects.

2. The data to be displayed may be stored in the application context (that is not in session context specific to a user.)

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

confused confused
Welcome to JavaRanch!

We're pleased to have you here with us in the JSP forum, but there are a few rules that need to be followed, and one is that proper names are required. 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.

You can change it here

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Another possibility is that you are using instance variables in you JSPs.

Any variables declared within the <%! ... %> tags are instance varaibles and will be shared across all requests.
I agree. Here's the link:
subject: jsp: data overloading
It's not a secret anymore!