This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Old request data is still there.

 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to groovy.Two GSPs(groovy server pages) in my application have redirection links to each other and control is flowing through a controller.First GSP(index.gsp) has link to second GSP(search.gsp) and search.gsp has link to index.gsp.In search.gsp I am doing some database operations and results are displayed in same page.When I going back to index.gsp and than coming back to search.gsp old request data(resulted from database operations) is still there!
Don't know why it hasn't been flushed..
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you storing the data in some cache? Did you try clearing the cache by Force refresh?
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am storing data in cache.I tried clearing cache of browser.It doesn't work..
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ankit Tripathi wrote:I am storing data in cache.I tried clearing cache of browser.It doesn't work..

If you are storing the data in cache which would mean that it persists between requests. If you really dont want the old data to be present in the cache, you would have to clear the cache before entering the page or may be while leaving the page.
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

If you are storing the data in cache which would mean that it persists between requests. If you really dont want the old data to be present in the cache, you would have to clear the cache before entering the page or may be while leaving the page.



How can we do it in Groovy.Please provide me with some example?
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ankit Tripathi wrote:

If you are storing the data in cache which would mean that it persists between requests. If you really dont want the old data to be present in the cache, you would have to clear the cache before entering the page or may be while leaving the page.



How can we do it in Groovy.Please provide me with some example?


How are you adding it in cache? The reverse/opposite of that would be removing the cache.
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

How are you adding it in cache? The reverse/opposite of that would be removing the cache.


I think I am not doing any Cache operation in my code..
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ankit Tripathi wrote:

How are you adding it in cache? The reverse/opposite of that would be removing the cache.


I think I am not doing any Cache operation in my code..

did you try this link?
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mohamed Sanaulla wrote:
Ankit Tripathi wrote:

How are you adding it in cache? The reverse/opposite of that would be removing the cache.


I think I am not doing any Cache operation in my code..

did you try this link?


Ya,I have tried that also.It's not working...
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the code which you are trying?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic