• Post Reply Bookmark Topic Watch Topic
  • New Topic

Issue in setting attributes in session object

 
abinash das
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my application i am setting setting attributes with certain name in my application during error,
for ex in case the issue with the update i am setting

session.setAttribute("somename","Error in Update");
in case issue with delete then

session.setAttribute("somename","Error in Delete");


but what is happening is which ever error comes first it remains throughout the session
Don't know why it is not getting override d ??
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A second set on the same name will override the first. if that's not what you are seeing, then something different than what you think is happening is happening.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!