To my experience tomcat never caches anything on it's own.
I see three possible sources:
- Cache after output (Proxy, Browser Cache)
- Cache on Page (Using something in the JSP that's
keeping information. E.g. Watch out for
declarations inside <%! %>
- Caching inside the bean (in your case, that could only
be a static member in the bean class, as the bean
itself has request scope and is created with every
request.
To factor out source 1 and 3 put something really
dynamic in the page, and see if it changes:
<%= System.currentTimeMillis() %>
To factor out the second source you should provide
a bit more of your code.
> -----Urspr�ngliche Nachricht-----
> Von: Falk [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 8. Mai 2001 13:34
> An: [EMAIL PROTECTED]
> Betreff: JSP Tomcat
>
>
> hello,
> i use a javabean within a jsp page on a tomcat3.2.1 server.
>
> <jsp:useBean
> class="oracle.jbo.html.databeans.ChartRenderer" id="bon"
> scope="request" >
>
> the bean retrieves data from a database. all fine so far.
> but tomcat caches the files so when i update the database and
> reload the jsp
> page in the browser I receive old data.
> I have to restart tomcat in order to get the correct data.
> Also when I open another browser the data is correct.
> And I get "OutputStream already in use" Exception.
> anybody knows how to configure tomcat to get the correct data
> without having
> to restart ??
>
> thanks a lot
> falk
>
>