The constant is in a Java class in a JAR file. Deleting all _xsp.java and _xsp.class files will work, although I was hoping for a more elegant solution. That way many XSPs which don't use the constant at all will also have to be regenerated.


In my case I happened to know which XSP was using it for sure and did a "touch" on the linux command line so that Cocoon would recognize the file changed (just because the file date/time stamp was updated) and regenerate just that XSP.

Oh well,

Sonny

From: "Roger I Martin PhD" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>
Subject: Re: How to force XSP recompilation?
Date: Sat, 23 Aug 2003 21:13:14 -0400

See mixed comments below...
----- Original Message -----
From: "Sonny Sukumar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 23, 2003 4:29 PM
Subject: How to force XSP recompilation?


>
> My problem is this: A snippet of Java code in my XSP references a
constant
> of one of my backend Java classes (in a JAR file in WEB-INF/lib).
However,
> I changed that constant value, recompiled and remade the JAR, restarted
> Tomcat, etc, but my XSP didn't get recompiled simply because I didn't edit
> the XSP file after that.
>
> But since any file depending on a constant in another class needs to be
> recompiled if that constant value changes, I was for awhile wondering why
> the XSP output wasn't changing.
>
> Does anybody know how to get Cocoon to handle this without having to
> remember everywhere (in what XSPs) that constant is referenced?


The constant is changed only by you as the webapp admin? And then restarted
to serve for your users? If it is under your control you can delete the
files under %TOMCAT_HOME%/work/Catalina/localhost/%YOUR_WEBAPP%. maybe just
all *_xsp.java and *_xsp.class files. When you restart tomcat and go to
these pages you should see it take a little time to recompile and then be
live.


>
> Thanks,
>
> Sonny
>
> _________________________________________________________________
> Get MSN 8 and enjoy automatic e-mail virus protection.
> http://join.msn.com/?page=features/virus
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
Get MSN 8 and enjoy automatic e-mail virus protection. http://join.msn.com/?page=features/virus



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to