You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Josh G <jo...@gfunk007.com> on 2002/08/29 02:06:42 UTC

MVC and caching

Hi, I'm using a model-view-controller setup for my application, and I've run 
into problems with caching - here's a workflow:

1. User gets presented with viewDetails.jsp?id=1
2. User updates details, submits forms to a controller servlet
3. Servlet commits the changes via the model objects, and redirects to 
viewDetails.jsp?id=1
4. ???
5. Profit!!!

The problem is, the user is seeing (sometimes) a cached version of 
viewDetails.jsp?id=1.... not always mind, just most of the time.

Anybody run into similar problems? Is there a simple solution? Perhaps adding 
a variable with random data in it?

Any answers appreciated!

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: MVC and caching

Posted by Anthony Geoghegan <an...@eircom.net>.
Is that a client caching issue?
If so a variety of http header settings can be used to clear a client-side
cache.

Best Regards,
Anthony Geoghegan.
J2EE Developer
CPS Ireland Ltd.
----- Original Message -----
From: "Josh G" <jo...@gfunk007.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Thursday, August 29, 2002 1:06 AM
Subject: MVC and caching


Hi, I'm using a model-view-controller setup for my application, and I've run
into problems with caching - here's a workflow:

1. User gets presented with viewDetails.jsp?id=1
2. User updates details, submits forms to a controller servlet
3. Servlet commits the changes via the model objects, and redirects to
viewDetails.jsp?id=1
4. ???
5. Profit!!!

The problem is, the user is seeing (sometimes) a cached version of
viewDetails.jsp?id=1.... not always mind, just most of the time.

Anybody run into similar problems? Is there a simple solution? Perhaps
adding
a variable with random data in it?

Any answers appreciated!

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>