Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

i have a strange problem with this session

 
Shivaprasad P Kanaganahallimath
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


My problem is, in my application i have to display dynamic values for a drop down menu in jsp. so i am using an action class to do this and first time when i enter the application it gives me correct values.But when i enter the application for thwe second time it shows the previous values along with the same set of new values(I am using session object to pass these values,which are inside an arraylist from my action class to jsp).

example
1.First Attempt
i get drop down values
electronics
electrical
stationary

2.Second Attempt
i get
electronics -----repeated
electrical ------repeated
stationary ------repeated
electronics
electrical
stationary

i hope folks will give some good solution to this....
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer is in this thread.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic