velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Glass-Husain" <wgl...@forio.com>
Subject Re: another velocity article
Date Tue, 08 Jun 2004 04:50:46 GMT
Hi Jason,

I can't remember if I replied back then to Tim's email, but #stop is
definitely still broken.  However, if you're adventurous there's a patch out
to fix it.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24189

If you're not familiar with it, do check out the velocity-tools subproject,
though which has a number of useful tools to do things like format dates and
numbers.

WILL




----- Original Message ----- 
From: "Jason Briggs" <jasonrbriggs@eudoramail.com>
To: <velocity-user@jakarta.apache.org>
Sent: Monday, June 07, 2004 8:33 PM
Subject: RE: another velocity article


> Just came across this, so my apologies for a late reply.  I wrote that
article, so I think I can answer your question...
>
> The reason I wrote my own #exit was that #stop does not work the same way
that a java-coded "return" works in a JSP.  I checked out this mailing list
and Geir Magnusson had provided a work around (ages ago) for the exact same
problem (someone else had obviously encountered).  So I followed his
example.  Perhaps the way #stop works has changed in later versions...?  Or
perhaps I came across some strangeness with our environment -- I don't know.
At least from the point of view of my own migration from JSP to Velocity, it
was a necessary addition.
>
> In reply to your other message regarding creation of new directives, it
seemed to me (in writing it) that anyone -migrating- from JSPs would be hard
pressed to convince management if it involved a huge amount of recoding
templates.  That was the point of view of my approach -- to basically mimic
a JSP in Velocity without a huge amount of rework.  The creation of
directives to format dates and numbers was mainly so I could  write the
simplest sed script possible to reformat my JSPs as VMs (i.e. complete and
utter laziness... ;-)
>
>
> Kind regards
> J
>
>
> Tim Colson (tcolson@cisco.com) wrote:
> > it seems he even wrote his own version of an existing
> > directive!
> >
> > "... and a simple directive to halt the rendering of a
> > template "
> >
> > umm... wasn't #stop enough?  What does his own #exit do that
> > #stop doesn't?
>
>
>
>
>
> Need a new email address that people can remember
> Check out the new EudoraMail at
> http://www.eudoramail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message