----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

You need to be more clear about your problem:

1) What do you mean when you say that "you" want to run one servlet, than another, 
then the first again?  Do you mean that your users hit one page after another in that 
order?  Or do you mean that you want to trigger the service methods of a series of 
servlets from inside one of them?

2) Why do your pages need to be cached?  Your users can always use the back button -- 
if the page isn't cached, it gets requested again from the server (assuming that it 
wasn't an old POST request, that is).  You can't have it both a) be cached and b) 
"refreshing the servlet".  It either hits the server or it doesn't.

Cache settings are browser-dependent, so if you don't want a user to cache a page and 
not check with your for a new version, you should issue a 'pragma: no-cache' header, 
which most browsers will honor (I think).

If the above doesn't answer your question, posting some sample code would make things 
much clearer.

-Dan


Michael Travars wrote:
> 
> 
> Hey all...
>   I've got another problem.  I'm writing a web application that uses
> multiple servlets, and there are instances where I want to run one servlet,
> run another servlet, then run the first servlet again (with the output
> changing based upon the output from the second servlet, if that makes
> sense).  The problem I seem to be having is that my servlets don't refresh..
> That is, clicking on the link for the servlet brings up the same page that
> it did before running the second one.  My question is, is there a way to
> force the server to go through the complete servlet every time, rather than
> using the cached pages?  I still need the pages to be cached so users can go
> back to them.
> Help!!!
> Thanks
> mike
> 
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]

-- 

Dan Milstein // [EMAIL PROTECTED]
Member of Technical Staff // Capital Knowledge Partners


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to