Actually, when I turn that off, the Velocity templates refresh as
expected - this is the Java code that prepares the context for the
template that wasn't refreshing properly.

Will Stranathan

--- Stefan Guenther <[EMAIL PROTECTED]> wrote:
> 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Will
> Stranathan
> > Sent: Wednesday, November 15, 2000 11:30 PM
> > To: [EMAIL PROTECTED]
> > Subject: Just learning....
> >
> >
> > I'm just learning, so forgive me if I'm asking something really
> > elementary.
> >
> > I'm trying to learn what classes Velocity looks for to run, and
> I'm
> > going to ?template=willpage.vm .  (Okay, it uses path info -
> > /template/willpage.vm).  I wrote Willpage.java and did the build.
> > After restarting, the context gets populated by Willpage as
> expected,
> > and when I rename Willpage.class to something else, the context
> gets
> > populated by org.apache.turbine.modules.screens.Default.class, as
> > expected.  However, when I rename Willpage.class back, the
> context is
> > STILL getting populated by Default.  Any ideas?
> >
> > For example:
> > org/apache/turbine/modules/screens/Default.java
> > context.put("message","Hello from test link");
> >
> > org/scott/screens/Willpage.java
> > context.put("message", data.getParameters().getString("userid") +
> "
> > is cool!");
> >
> > When Willpage is there, I get "Whoever is cool".  When renamed, I
> get
> > "Hello from test link".  When put back into place, I still get
> Hello
> > from test link.
> >
> > I do have module.cache=false set.
> >
> > Will Stranathan
> >
> Some days ago someone, I think Jason was the one, said, that
> velocity.properties has module.cache=true and overrides
> Turbine.properties,
> at least in the TDK. Maybe that is the cause for your problem.
> 
> Hope that helps
> Stefan
> 
> 
> 
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search:
> <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to