Solved

implicit variables session and application  instead of request

Posted on 2013-01-25
1
350 Views
Last Modified: 2013-02-04
I was reading as follows


If we use the implicit variables session
and application to share objects with included and forwarded pages instead of request

IDs generated  for a search request from one client could affect the result of a search for another client
because they share the value of the attribute Ids in the application scope.

 please advise.
Any links resources, sample code, ideas highly appreciated. Thanks in advance
0
Comment
Question by:gudii9
1 Comment
 
LVL 11

Accepted Solution

by:
SANDY_SK earned 500 total points
ID: 38852361
Any values that you put in the session of one user will not affect the values put in the session of a different user.

However application variables as the name indicates, it is global to the application.

Not very clear what is the kind of data u are trying to store here, but here is an idea assuming that it is just an id that you want to store.
What you could is is store the ids in the application scope as and hashmap with the key as the respective userids and the value as the attribute id

may be can give a better solution if you give a little more info on what you are trying to achieve,
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This video teaches viewers about errors in exception handling.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now