Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

implicit variables session and application  instead of request

Posted on 2013-01-25
1
Medium Priority
?
371 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
[X]
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
1 Comment
 
LVL 11

Accepted Solution

by:
SANDY_SK earned 2000 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
A solution for Fortify Path Manipulation.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

670 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