wood burning stoves 2.0*
The moose likes Groovy and the fly likes Old request data is still there. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Old request data is still there." Watch "Old request data is still there." New topic
Author

Old request data is still there.

Ankit Tripathi
Ranch Hand

Joined: Oct 17, 2009
Posts: 198
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

Joined: Sep 08, 2007
Posts: 3064
    
  33

Are you storing the data in some cache? Did you try clearing the cache by Force refresh?


Mohamed Sanaulla | My Blog
Ankit Tripathi
Ranch Hand

Joined: Oct 17, 2009
Posts: 198
I am storing data in cache.I tried clearing cache of browser.It doesn't work..
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3064
    
  33

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

Joined: Oct 17, 2009
Posts: 198

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

Joined: Sep 08, 2007
Posts: 3064
    
  33

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

Joined: Oct 17, 2009
Posts: 198

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

Joined: Sep 08, 2007
Posts: 3064
    
  33

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

Joined: Oct 17, 2009
Posts: 198
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

Joined: Sep 08, 2007
Posts: 3064
    
  33

Can you post the code which you are trying?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Old request data is still there.
 
Similar Threads
GSP validations without domain classes
Grails 1.1 Web Application Development
acegi security plugin, Person and one of my domain objects
Re-directing to the correct page - Grails
render JSON in grails