Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

implicit variables session and application  instead of request

Posted on 2013-01-25
1
364 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
session migration servlets 2 42
arguments to jar 5 34
SHA2 certs for IIS AND Java? 2 113
Select statement in @Query (JPA Repository) - SpringMVC 2 13
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

856 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