• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Jsp Session Bean

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created a online form using jsp which is taking information from user in 4 different pages for that i created a bean with session scope.Problem is that when i open two browsers simontaniously and try to fill the forms simontaniously in both browsers the data of first form automatically become available in second form which i don't want.
Help me to sort out this problen.
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there are two instances of your browser but the session is same.

as we see with hotmail or other mail services, you can't check the two different inboxes on the same machine.
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
workaround:
Make the KEY that you put into session 'UNIQUE browser identifier' + your Key & save the browser identifier in request (hidden).

So, even though the session is the same, u can retrieve the different values as long as u know your identifier

Did you open two different browsers independetly, or did you spawn one browser from another (Ctrl N ; File | New Window)
[ September 15, 2004: Message edited by: Balan Ram ]
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Balan Ram:
Did you open two different browsers independetly, or did you spawn one browser from another (Ctrl N ; File | New Window)

[ September 15, 2004: Message edited by: Balan Ram ]



it seems to be the same thing. you will have two instances of the browser in both ways.


Make the KEY that you put into session 'UNIQUE browser identifier' + your Key & save the browser identifier in request (hidden).

So, even though the session is the same, u can retrieve the different values as long as u know your identifier



though session is the same then it means you will get the same value of unique identifier for both the browser instances. because you are setting it to session. isn't it. if no elaborate it more.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!