You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Brian Leach <br...@leach.com> on 2000/08/25 18:22:34 UTC
Forcing a recompile?
I have a JSP page which includes another file (prefs) containing code.
My application changes the prefs file, but I can't figure out how
to programatically let Tomcat know that the file needs to be regenerated.
The result is when I reload or revisit the JSP page, I get the
same page as was loaded before.
I've tried messing with the cache-control variables with no success.
I need to somehow let Tomcat know the JSP file is different, even
though it's an included file that has changed.
Is there a way to do this?
---
Brian Leach
brian@leach.com
RE: Forcing a recompile?
Posted by Brian Leach <br...@leach.com>.
I can't use jsp:include, because the include file contains code,
and the page has already been translated into a servlet by request
time.
> -----Original Message-----
> From: Todd Lipcon [mailto:tlipcon@mercea.net]
> Sent: Friday, August 25, 2000 12:26 PM
> To: Tomcat-User
> Subject: Re: Forcing a recompile?
>
>
> Are you using <jsp:include.../> or <%@ include...>? jsp:include includes
> the file at Runtime, so it will cause a reload. <%@ include...> includes
> it at java-generation-time, so it will not reload. If that's not the
> problem, I'm not sure what to tell you.
>
> -Todd
>
> +---------------------------------------------------------------+
> | Perl CGI scripting email tlipcon@csoft.net |
> | Web Design email tlipcon@csoft.net |
> | My Current Projects: |
> | NewsWire www.squirrelsw.com |
> | JavaGroove www.squirrelsw.com |
> +---------------------------------------------------------------+
>
> On Fri, 25 Aug 2000, Brian Leach wrote:
>
> > I have a JSP page which includes another file (prefs) containing code.
> > My application changes the prefs file, but I can't figure out how
> > to programatically let Tomcat know that the file needs to be
> regenerated.
> >
> > The result is when I reload or revisit the JSP page, I get the
> > same page as was loaded before.
> >
> > I've tried messing with the cache-control variables with no success.
> > I need to somehow let Tomcat know the JSP file is different, even
> > though it's an included file that has changed.
> >
> > Is there a way to do this?
> >
> > ---
> > Brian Leach
> > brian@leach.com
> >
> >
> >
> >
Re: Forcing a recompile?
Posted by Todd Lipcon <tl...@mercea.net>.
Are you using <jsp:include.../> or <%@ include...>? jsp:include includes
the file at Runtime, so it will cause a reload. <%@ include...> includes
it at java-generation-time, so it will not reload. If that's not the
problem, I'm not sure what to tell you.
-Todd
+---------------------------------------------------------------+
| Perl CGI scripting email tlipcon@csoft.net |
| Web Design email tlipcon@csoft.net |
| My Current Projects: |
| NewsWire www.squirrelsw.com |
| JavaGroove www.squirrelsw.com |
+---------------------------------------------------------------+
On Fri, 25 Aug 2000, Brian Leach wrote:
> I have a JSP page which includes another file (prefs) containing code.
> My application changes the prefs file, but I can't figure out how
> to programatically let Tomcat know that the file needs to be regenerated.
>
> The result is when I reload or revisit the JSP page, I get the
> same page as was loaded before.
>
> I've tried messing with the cache-control variables with no success.
> I need to somehow let Tomcat know the JSP file is different, even
> though it's an included file that has changed.
>
> Is there a way to do this?
>
> ---
> Brian Leach
> brian@leach.com
>
>
>
>