Solved

implicit variables session and application  instead of request

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB Script to add site to Java Exception List 4 78
hibernate example issues from command prompt 10 42
jboss wildfly 10.1 10 96
Crystal Reports Licensing Questions 4 12
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

809 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