You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Anthony Eden <ae...@signaturedomains.com> on 2001/05/25 18:59:50 UTC
Just Want to say Thanks
I just wanted to say thanks to the developers of Velocity. My favorite part
about Velocity is its simplicity. I hope that the developers continue to
retain this simplicity as development continues.
I have implemented a web application framework which uses Velocity as its
template engine in case anyone is interested. It is available at
http://jpublish.sourceforge.net/ and is open source (with an Apache-style
license.)
Once again, thanks to all of the Velocity developers for your excellent
work.
Sincerely,
Anthony Eden
RE: Just Want to say Thanks
Posted by Anthony Eden <ae...@signaturedomains.com>.
> -----Original Message-----
> From: Jon Stevens [mailto:jon@latchkey.com]
> Sent: Sunday, May 27, 2001 3:36 PM
> To: velocity-user
> Subject: Re: Just Want to say Thanks
>
>
> on 5/25/01 12:13 PM, "Anthony Eden" <ae...@signaturedomains.com> wrote:
>
> > The primary difference between JPublish and Turbine is that
> > Turbine contains a large number of APIs whereas JPublish is
> much simpler and
> > more focused.
>
> Clearly you are new to building web application frameworks.
>
> One day, you will realize that suddenly you are missing a bit of
> functionality that Turbine has. Then you will re-implement it. Eventually,
> your framework will grow to the size of Turbine. You just aren't
> there yet.
On the contrary, I would only implement a feature if I could not find a good
third-party library which would provide that functionality. Even then I
would consider separating it into its own project if so warranted.
> > - Actions can be attached globally, to paths, to pages,
> triggered through
> > HTTP parameters, or even triggered when the Servlet starts.
>
> Bad design.
Why? I have found each instance to be useful.
> > - Abstract content repositories allows you to implement
> repositories through
> > the file system, databases, web sites, etc. Content objects
> can be Velocity
> > templates themselves and can be nested. This behavior can be
> disabled and
> > is handled by the repository (as opposed to using Velocity import
> > statements.)
>
> Nice sounding feature, but in reality, this isn't useful.
Once again, I have found this to be very useful. I can build reusable
velocity templates as small components which can then be included in the
main template, or within other components. And for security reasons this
can be shut off (if for example you are exposing a page to content writers
and you only want them to use HTML elements.)
> > - URLs look like static URLs. This is so simple yet it is very
> important
> > when it comes to search engines and user perception.
>
> Turbine has this.
Sorry, but this is not clear in the documentation. The "standard" as I
interpreted it from the documentation was to have URLs such as
"/jyve-faq/Turbine/screen/MainMenu/action/SetAll/screen/DisplayTopics/faq_id
/2/project_id/1".
If you would like to continue dicussing the pros and cons of each of our
designs then please feel free to join the JPublish developer mailing list or
email me directly. Otherwise we should probably not continue discussing
this here as this list is for Velocity users, not Turbine or JPublish users.
Sincerely,
Anthony Eden
Re: Just Want to say Thanks
Posted by Jon Stevens <jo...@latchkey.com>.
on 5/28/01 1:28 PM, "Jacek Kempski" <jk...@jacekkempski.com> wrote:
> first of all, you're too damn arrogant to be damn qualified.
> secondly it's not turbine's list so get your toys and bye bye jonnie.
>
> jk
I love you too!
-jon
Re: Just Want to say Thanks
Posted by Jacek Kempski <jk...@jacekkempski.com>.
>
> Maybe what you and he doesn't realize is that FreeEnergy was developed at my
> company (Clear Ink) by Leon Atkinson. Aquarium was also developed at my
> company as well, by Shannon Behrens and Leon.
>
> So, of all people who are aware of FreeEnergy's design and intentions, I
> think I'm pretty damn qualified to speak about it and I will tell you that
> having actions executed based on criteria other than what the <form> tag
> specifies was NOT part of FreeEnergy and is considered bad design by both
> myself and Leon.
first of all, you're too damn arrogant to be damn qualified.
secondly it's not turbine's list so get your toys and bye bye jonnie.
jk
RE: Just Want to say Thanks
Posted by Paulo Gaspar <pa...@krankikom.de>.
> -----Original Message-----
> From: Jon Stevens [mailto:jon@latchkey.com]
> Sent: Monday, May 28, 2001 9:49 PM
>
> on 5/28/01 2:45 AM, "Paulo Gaspar" <pa...@krankikom.de> wrote:
>
> > Maybe. But Turbine still lacks focus and consistency.
>
> "Too short as a remark"
>
> Huh? What do you base that statement on? If anything, I think that we are
> more focused and consistent than ever. We are nearing our first major
> release and have quite a lot of people using it at this point.
I also said that:
> > It sure is a usable/useful repository of code/features for a lot of
> > people...
I have gone trough all the docs and a lot of Turbine's code. Some pieces
are interesting, but as a framework is not interesting for me. Otherwise,
I would participate on its lists.
> >>> - Actions can be attached globally, to paths, to pages,
> >> triggered through
> >>> HTTP parameters, or even triggered when the Servlet starts.
> >>
> >> Bad design.
> >
> > Too short as a remark.
>
> I feel that actions are decided within the template based on what
> is in the
> <form> tag. There is only one action that needs to be executed
> per template.
Sorry, I have a problem with absolute-100%-sure statements.
There are no absolute rules and it is not a matter of "needing to".
Maybe one can do something always following a given method, but maybe
that is not always the most convenient way to do it.
Besides, I am not sure that anything should be decided inside a
template.
> This is part of the FreeEnergy design that Turbine was originally
> based off ...
>
<SNIP>A lot of historic ground.</SNIP>
I am not going to use whatever experience I have as an argument since I
also do not accept that as one. And FreeEnergy's design is not the Bible
of Software Design for me.
> ...
>
> > That depends a lot on one's specific needs. I don't need it, you
> > don't need it, but some people do.
>
> I disagree. People with less experience than I have in this field, think
> they need it and then after six months of using it, they realize that they
> don't and that it was bad design.
All of them?
> ...
>
> > Sure... but the way Turbine does it is quite sh*ty!
> > IMO, path info should be used to structure/organize pages and not
> > to pass parameters.
>
> So, then how would you pass parameters?
Not "would". I DO identify the data in the page tough document name, just
as it is usually done with static pages. Some context/organization can be
given trough the path. But I do not use name/parameter paths in the path.
However, I do not try to make all the URLs look like static URLs.
It does not make sense to make a search result URL look like a static
page:
- You are not going to export it;
- A search engine is not going to fill a form to find it.
This is the situation where you really need to pass a big set of
parameters. On all the others, I try to "lay out" the dynamic site
organization as if it was a static site:
- path is for organization/context;
- doc name is for identification of the displayed item.
> Also, Turbine's method can be easily swapped out with ANY
> implementation by
> simply using a different class than DynamicURI. Also, DynamicURI doesn't
> require you to use path_info at all. You can use whatever the
> heck you want.
Sure. I never said it was hard.
> So, saying that Turbine's methodology is sh*ty is totally off base and
> clearly smells of your lack of knowledge about Turbine.
Or maybe there is another reason: that it is really patchwork!
> > BTW, I don't know if JPublish is any good or not. I just don't get:
> > - Why such a vigorous attack on JPublish _only_ trough what was
> > written in Anthony's posting;
>
> It wasn't an attack. You *decided* to read it that way because that is how
> you seem to expect me to react.
Or maybe it is something in your writing style.
Remember that I do agree with you when I think you are right. It did happen
already several times. So, I believe that you are able to be right.
The possible prejudice is not that big and when I dislike what you say, it
is not because it is you saying it but because of what you say and the way
you say it.
> > - How is it possible to attack JPublish's design (_only_ trough
> > what was in Anthony's posting) while defending Turbine's.
>
> How is saying that a particular something is a bad design an attack?
It was not a personal attack. That is not the point.
It is an attack to the design ideas of JPublish (which you did not study,
did you?) while defending Turbine as the cure. This is the contrast that
does not make sense to me:
1. saying something that you do not know so well is bad design;
2. while saying that Turbine is all good design.
> > "Architecture", "design" and "focus" are not the first ideas to
> > cross my mind when I think of Turbine. Turbine is mostly patchwork.
> > It sure is a usable/useful repository of code/features for a lot of
> > people, but lets be modest about being more than that.
>
> Paulo, I don't think you have a very good understanding of Turbine, so
> please keep your comment to yourself until you can speak with some sort of
> authority on the subject matter.
Then you are wrong. I did study Turbine and there is nothing transcendental
to understand about it (even because the documentation is good enough).
There are several good bits, but nothing special as a whole.
But I am not interested enough on Turbine even to keep this thread going on.
IF I was interested on Turbine, I would participate a bit in its lists.
Have fun,
Paulo Gaspar
Re: Just Want to say Thanks
Posted by Jon Stevens <jo...@latchkey.com>.
on 5/28/01 2:45 AM, "Paulo Gaspar" <pa...@krankikom.de> wrote:
> Maybe. But Turbine still lacks focus and consistency.
"Too short as a remark"
Huh? What do you base that statement on? If anything, I think that we are
more focused and consistent than ever. We are nearing our first major
release and have quite a lot of people using it at this point.
>>> - Actions can be attached globally, to paths, to pages,
>> triggered through
>>> HTTP parameters, or even triggered when the Servlet starts.
>>
>> Bad design.
>
> Too short as a remark.
I feel that actions are decided within the template based on what is in the
<form> tag. There is only one action that needs to be executed per template.
This is part of the FreeEnergy design that Turbine was originally based off
of and what Anthony originally quoted as his introductory methodology.
Maybe what you and he doesn't realize is that FreeEnergy was developed at my
company (Clear Ink) by Leon Atkinson. Aquarium was also developed at my
company as well, by Shannon Behrens and Leon.
So, of all people who are aware of FreeEnergy's design and intentions, I
think I'm pretty damn qualified to speak about it and I will tell you that
having actions executed based on criteria other than what the <form> tag
specifies was NOT part of FreeEnergy and is considered bad design by both
myself and Leon.
Having said all of that, it is *trivial* to modify Turbine to add this
functionality. All you need to do is implement your own Action module that
accepts configuration that allows you to attach other actions based on
whatever criteria you want. ActionLoader.exec() will allow other actions to
be executed.
> That depends a lot on one's specific needs. I don't need it, you
> don't need it, but some people do.
I disagree. People with less experience than I have in this field, think
they need it and then after six months of using it, they realize that they
don't and that it was bad design.
One of my framework pre-cursors to Turbine, called StyleWeb, had this
design. Wow, that was about 5-6 years ago.
> Sure... but the way Turbine does it is quite sh*ty!
> IMO, path info should be used to structure/organize pages and not
> to pass parameters.
So, then how would you pass parameters?
Also, Turbine's method can be easily swapped out with ANY implementation by
simply using a different class than DynamicURI. Also, DynamicURI doesn't
require you to use path_info at all. You can use whatever the heck you want.
So, saying that Turbine's methodology is sh*ty is totally off base and
clearly smells of your lack of knowledge about Turbine.
> BTW, I don't know if JPublish is any good or not. I just don't get:
> - Why such a vigorous attack on JPublish _only_ trough what was
> written in Anthony's posting;
It wasn't an attack. You *decided* to read it that way because that is how
you seem to expect me to react.
> - How is it possible to attack JPublish's design (_only_ trough
> what was in Anthony's posting) while defending Turbine's.
How is saying that a particular something is a bad design an attack?
> "Architecture", "design" and "focus" are not the first ideas to
> cross my mind when I think of Turbine. Turbine is mostly patchwork.
> It sure is a usable/useful repository of code/features for a lot of
> people, but lets be modest about being more than that.
Paulo, I don't think you have a very good understanding of Turbine, so
please keep your comment to yourself until you can speak with some sort of
authority on the subject matter.
-jon
RE: Just Want to say Thanks
Posted by Paulo Gaspar <pa...@krankikom.de>.
> -----Original Message-----
> From: Jon Stevens [mailto:jon@latchkey.com]
> Sent: Sunday, May 27, 2001 9:36 PM
>
> on 5/25/01 12:13 PM, "Anthony Eden" <ae...@signaturedomains.com> wrote:
>
> > The primary difference between JPublish and Turbine is that
> > Turbine contains a large number of APIs whereas JPublish is
> much simpler and
> > more focused.
>
> Clearly you are new to building web application frameworks.
>
> One day, you will realize that suddenly you are missing a bit of
> functionality that Turbine has. Then you will re-implement it. Eventually,
> your framework will grow to the size of Turbine. You just aren't
> there yet.
Maybe. But Turbine still lacks focus and consistency.
> > - Actions can be attached globally, to paths, to pages,
> triggered through
> > HTTP parameters, or even triggered when the Servlet starts.
>
> Bad design.
Too short as a remark.
> > - Abstract content repositories allows you to implement
> repositories through
> > the file system, databases, web sites, etc. Content objects
> can be Velocity
> > templates themselves and can be nested. This behavior can be
> disabled and
> > is handled by the repository (as opposed to using Velocity import
> > statements.)
>
> Nice sounding feature, but in reality, this isn't useful.
That depends a lot on one's specific needs. I don't need it, you
don't need it, but some people do.
> > - URLs look like static URLs. This is so simple yet it is very
> important
> > when it comes to search engines and user perception.
>
> Turbine has this.
Sure... but the way Turbine does it is quite sh*ty!
IMO, path info should be used to structure/organize pages and not
to pass parameters.
> -jon
BTW, I don't know if JPublish is any good or not. I just don't get:
- Why such a vigorous attack on JPublish _only_ trough what was
written in Anthony's posting;
- How is it possible to attack JPublish's design (_only_ trough
what was in Anthony's posting) while defending Turbine's.
"Architecture", "design" and "focus" are not the first ideas to
cross my mind when I think of Turbine. Turbine is mostly patchwork.
It sure is a usable/useful repository of code/features for a lot of
people, but lets be modest about being more than that.
Have fun,
Paulo Gaspar
Re: Just Want to say Thanks
Posted by Jon Stevens <jo...@latchkey.com>.
on 5/25/01 12:13 PM, "Anthony Eden" <ae...@signaturedomains.com> wrote:
> The primary difference between JPublish and Turbine is that
> Turbine contains a large number of APIs whereas JPublish is much simpler and
> more focused.
Clearly you are new to building web application frameworks.
One day, you will realize that suddenly you are missing a bit of
functionality that Turbine has. Then you will re-implement it. Eventually,
your framework will grow to the size of Turbine. You just aren't there yet.
> - Actions can be attached globally, to paths, to pages, triggered through
> HTTP parameters, or even triggered when the Servlet starts.
Bad design.
> - Abstract content repositories allows you to implement repositories through
> the file system, databases, web sites, etc. Content objects can be Velocity
> templates themselves and can be nested. This behavior can be disabled and
> is handled by the repository (as opposed to using Velocity import
> statements.)
Nice sounding feature, but in reality, this isn't useful.
> - URLs look like static URLs. This is so simple yet it is very important
> when it comes to search engines and user perception.
Turbine has this.
-jon
RE: forumdemo example can't find list.vm
Posted by Jim McNeill <Ji...@BTInternet.COM>.
Yep, it works fine on 1.1.
> -----Original Message-----
> From: gmj@mta4.srv.hcvlny.cv.net [mailto:gmj@mta4.srv.hcvlny.cv.net]On
> Behalf Of Geir Magnusson Jr.
> Sent: 29 May 2001 00:12
> To: velocity-user@jakarta.apache.org
> Subject: Re: forumdemo example can't find list.vm
>
>
> Jim McNeill wrote:
> >
> > Yeah, you're absolutely right, I'm running 1.0.1. I noticed
> there was a 1.1
> > but I was too lazy to download it...doing that now. Sorry.
>
> That's all right - let us know if it works - I changed forumdemo to be
> autoconfiguring on a 2.2 or better servlet runner...
Re: forumdemo example can't find list.vm
Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
Jim McNeill wrote:
>
> Yeah, you're absolutely right, I'm running 1.0.1. I noticed there was a 1.1
> but I was too lazy to download it...doing that now. Sorry.
That's all right - let us know if it works - I changed forumdemo to be
autoconfiguring on a 2.2 or better servlet runner...
>
> Cheers big ears
> Jim McNeill
>
> PS: I see there's a couple of people on the list getting damn angry.
> Thought I was just getting into a techie thing; never knew there was
> amusement to be had too! Can I look forwards to more of this? Or is it past
> their bedtimes yet?
Don't start. In hockey, there is a 'third man in' rule that gets you an
additional 2 minutes...
:)
geir
> > -----Original Message-----
> > From: gmj@mta4.srv.hcvlny.cv.net [mailto:gmj@mta4.srv.hcvlny.cv.net]On
> > Behalf Of Geir Magnusson Jr.
> > Sent: 28 May 2001 20:51
> > To: velocity-user@jakarta.apache.org
> > Subject: Re: forumdemo example can't find list.vm
> >
> >
> > Jim McNeill wrote:
> > >
> > > Good day all,
> > >
> > > Trying to get the forum demo to work (under Windows 98).
> > Copied forumdemo
> > > directory from velocity\examples into tomcat\webapps,
> > started tomcat, index
> > > page OK but attempting to post or list gives this kind of
> > stuff in the web
> > > page:
> > > Unable to find resource 'list.vm'
> > >
> > > I've tried copying list.vm to the webapps\forumdemo
> > directory (no joy), then
> > > tried copying the whole template directory to
> > webapps\forumdemo\WEB-INF. No
> > > luck there either.
> > >
> > > Does anyone have an idea what's going on?
> > >
> >
> > Where is this from?
> >
> > Is this from velocity 1.0.1 distribution, or the 1.1-rc1 ?
> >
> > It's important because the older was sensitve to where tomcat was
> > started...
> >
> > geir
> >
> > --
> > Geir Magnusson Jr. geirm@optonline.net
> > System and Software Consulting
> > Developing for the web? See http://jakarta.apache.org/velocity/
> > "still climbing up to the shoulders..."
> >
--
Geir Magnusson Jr. geirm@optonline.net
System and Software Consulting
Developing for the web? See http://jakarta.apache.org/velocity/
"still climbing up to the shoulders..."
RE: forumdemo example can't find list.vm
Posted by Jim McNeill <Ji...@BTInternet.COM>.
Yeah, you're absolutely right, I'm running 1.0.1. I noticed there was a 1.1
but I was too lazy to download it...doing that now. Sorry.
Cheers big ears
Jim McNeill
PS: I see there's a couple of people on the list getting damn angry.
Thought I was just getting into a techie thing; never knew there was
amusement to be had too! Can I look forwards to more of this? Or is it past
their bedtimes yet?
> -----Original Message-----
> From: gmj@mta4.srv.hcvlny.cv.net [mailto:gmj@mta4.srv.hcvlny.cv.net]On
> Behalf Of Geir Magnusson Jr.
> Sent: 28 May 2001 20:51
> To: velocity-user@jakarta.apache.org
> Subject: Re: forumdemo example can't find list.vm
>
>
> Jim McNeill wrote:
> >
> > Good day all,
> >
> > Trying to get the forum demo to work (under Windows 98).
> Copied forumdemo
> > directory from velocity\examples into tomcat\webapps,
> started tomcat, index
> > page OK but attempting to post or list gives this kind of
> stuff in the web
> > page:
> > Unable to find resource 'list.vm'
> >
> > I've tried copying list.vm to the webapps\forumdemo
> directory (no joy), then
> > tried copying the whole template directory to
> webapps\forumdemo\WEB-INF. No
> > luck there either.
> >
> > Does anyone have an idea what's going on?
> >
>
> Where is this from?
>
> Is this from velocity 1.0.1 distribution, or the 1.1-rc1 ?
>
> It's important because the older was sensitve to where tomcat was
> started...
>
> geir
>
> --
> Geir Magnusson Jr. geirm@optonline.net
> System and Software Consulting
> Developing for the web? See http://jakarta.apache.org/velocity/
> "still climbing up to the shoulders..."
>
Re: forumdemo example can't find list.vm
Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
Jim McNeill wrote:
>
> Good day all,
>
> Trying to get the forum demo to work (under Windows 98). Copied forumdemo
> directory from velocity\examples into tomcat\webapps, started tomcat, index
> page OK but attempting to post or list gives this kind of stuff in the web
> page:
> Unable to find resource 'list.vm'
>
> I've tried copying list.vm to the webapps\forumdemo directory (no joy), then
> tried copying the whole template directory to webapps\forumdemo\WEB-INF. No
> luck there either.
>
> Does anyone have an idea what's going on?
>
Where is this from?
Is this from velocity 1.0.1 distribution, or the 1.1-rc1 ?
It's important because the older was sensitve to where tomcat was
started...
geir
--
Geir Magnusson Jr. geirm@optonline.net
System and Software Consulting
Developing for the web? See http://jakarta.apache.org/velocity/
"still climbing up to the shoulders..."
Re: forumdemo example can't find list.vm
Posted by Jon Stevens <jo...@latchkey.com>.
If you download the file that I pointed at, you will see it is a copy of
Tomcat, Velocity and Forumdemo already configured and setup. I don't see how
this is any different than what you were looking for already.
-jon
on 5/29/01 5:38 AM, "Jim McNeill" <Ji...@BTInternet.COM> wrote:
> Thanks Jon, but I was trying to get the demo running on my PC to make sure
> I've got all the Tomcat/ Velocity bits working properly together. Geir
> sussed that I was using 1.0.1 and suggested downloading 1.1 - which now
> works fine. Even though I ignored the warning while building it to set PATH
> in Velocity.property.
>
> Ta much
> Jim
>
>> -----Original Message-----
>> From: Jon Stevens [mailto:jon@latchkey.com]
>> Sent: 28 May 2001 20:51
>> To: velocity-user
>> Subject: Re: forumdemo example can't find list.vm
>>
>>
>> on 5/28/01 12:23 PM, "Jim McNeill" <Ji...@BTInternet.COM> wrote:
>>
>>> Trying to get the forum demo to work (under Windows 98).
>> Copied forumdemo
>>> directory from velocity\examples into tomcat\webapps,
>> started tomcat, index
>>> page OK but attempting to post or list gives this kind of
>> stuff in the web
>>> page:
>>
>> Try this:
>>
>> <http://jakarta.apache.org/builds/jakarta-velocity/demo/>
>>
>> You can see how things are setup.
>>
>> -jon
>>
>>
>
--
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>
RE: forumdemo example can't find list.vm
Posted by Jim McNeill <Ji...@BTInternet.COM>.
Thanks Jon, but I was trying to get the demo running on my PC to make sure
I've got all the Tomcat/ Velocity bits working properly together. Geir
sussed that I was using 1.0.1 and suggested downloading 1.1 - which now
works fine. Even though I ignored the warning while building it to set PATH
in Velocity.property.
Ta much
Jim
> -----Original Message-----
> From: Jon Stevens [mailto:jon@latchkey.com]
> Sent: 28 May 2001 20:51
> To: velocity-user
> Subject: Re: forumdemo example can't find list.vm
>
>
> on 5/28/01 12:23 PM, "Jim McNeill" <Ji...@BTInternet.COM> wrote:
>
> > Trying to get the forum demo to work (under Windows 98).
> Copied forumdemo
> > directory from velocity\examples into tomcat\webapps,
> started tomcat, index
> > page OK but attempting to post or list gives this kind of
> stuff in the web
> > page:
>
> Try this:
>
> <http://jakarta.apache.org/builds/jakarta-velocity/demo/>
>
> You can see how things are setup.
>
> -jon
>
>
Re: forumdemo example can't find list.vm
Posted by Jon Stevens <jo...@latchkey.com>.
on 5/28/01 12:23 PM, "Jim McNeill" <Ji...@BTInternet.COM> wrote:
> Trying to get the forum demo to work (under Windows 98). Copied forumdemo
> directory from velocity\examples into tomcat\webapps, started tomcat, index
> page OK but attempting to post or list gives this kind of stuff in the web
> page:
Try this:
<http://jakarta.apache.org/builds/jakarta-velocity/demo/>
You can see how things are setup.
-jon
forumdemo example can't find list.vm
Posted by Jim McNeill <Ji...@BTInternet.COM>.
Good day all,
Trying to get the forum demo to work (under Windows 98). Copied forumdemo
directory from velocity\examples into tomcat\webapps, started tomcat, index
page OK but attempting to post or list gives this kind of stuff in the web
page:
java.lang.Exception: Cannot find the template!
java.lang.Exception: Cannot find the template! at
org.apache.velocity.servlet.VelocityServlet.doRequest(VelocityServlet.java:3
34) at
org.apache.velocity.servlet.VelocityServlet.doGet(VelocityServlet.java:287)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at
org.apache.tomcat.core.Handler.service(Handler.java:286) at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210) at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
and (perhaps more helpfully) the tomcat console has
Error handling the request:
org.apache.velocity.exception.ResourceNotFoundException:
Unable to find resource 'list.vm'
I've tried copying list.vm to the webapps\forumdemo directory (no joy), then
tried copying the whole template directory to webapps\forumdemo\WEB-INF. No
luck there either.
Does anyone have an idea what's going on?
Cheers
Jim McNeill
RE: Just Want to say Thanks
Posted by Anthony Eden <ae...@signaturedomains.com>.
I probably wouldn't compare JPublish to Struts beyond the fact that they are
both application frameworks. Struts utilizes the JSP pages and taglibs to
accomplish its goal whereas JPublish uses Velocity as a template engine for
both site-wide templates as well as content. After building some large
sites with JSP I decided that I needed a better way to build web sites.
I would say that JPublish is closer to Turbine. In fact I wrote JPublish
after being introduced to Turbine and especially the FreeEnergy methodology
by a friend. The primary difference between JPublish and Turbine is that
Turbine contains a large number of APIs whereas JPublish is much simpler and
more focused. Turbine also relies on writing Java classes to provide Action
logic, navigation components, etc. Turbine can be controlled from Python
through Jython, but you may as well use Aquarium (a Python implementation of
FreeEnergy) in that case. JPublish on the other hand allows Java classes or
any BSF supported scripting language to be used for actions and navigation
components are just content objects (which can be Velocity templates as
well.)
I find it difficult to choose one feature which is the best feature. Rather
I think several features together set JPublish apart from its competitors:
- Actions can be attached globally, to paths, to pages, triggered through
HTTP parameters, or even triggered when the Servlet starts.
- Abstract content repositories allows you to implement repositories through
the file system, databases, web sites, etc. Content objects can be Velocity
templates themselves and can be nested. This behavior can be disabled and
is handled by the repository (as opposed to using Velocity import
statements.)
- URLs look like static URLs. This is so simple yet it is very important
when it comes to search engines and user perception.
More detailed information can be found on the JPublish web site
(http://jpublish.sourceforge.net/)
Sincerely,
Anthony Eden
-----Original Message-----
From: gmj@mta4.srv.hcvlny.cv.net [mailto:gmj@mta4.srv.hcvlny.cv.net]On
Behalf Of Geir Magnusson Jr.
Sent: Friday, May 25, 2001 1:28 PM
To: velocity-user@jakarta.apache.org
Subject: Re: Just Want to say Thanks
Anthony Eden wrote:
>
> I just wanted to say thanks to the developers of Velocity. My favorite
part
> about Velocity is its simplicity. I hope that the developers continue to
> retain this simplicity as development continues.
>
> I have implemented a web application framework which uses Velocity as its
> template engine in case anyone is interested. It is available at
> http://jpublish.sourceforge.net/ and is open source (with an Apache-style
> license.)
>
I saw that. Congrats.
I'll try to be the first to ask :
How would you contrast/compare this to Turbine and Struts ?
What do you believe to be the best feature?
geir
--
Geir Magnusson Jr. geirm@optonline.net
System and Software Consulting
Developing for the web? See http://jakarta.apache.org/velocity/
"still climbing up to the shoulders..."
Re: Just Want to say Thanks
Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
Anthony Eden wrote:
>
> I just wanted to say thanks to the developers of Velocity. My favorite part
> about Velocity is its simplicity. I hope that the developers continue to
> retain this simplicity as development continues.
>
> I have implemented a web application framework which uses Velocity as its
> template engine in case anyone is interested. It is available at
> http://jpublish.sourceforge.net/ and is open source (with an Apache-style
> license.)
>
I saw that. Congrats.
I'll try to be the first to ask :
How would you contrast/compare this to Turbine and Struts ?
What do you believe to be the best feature?
geir
--
Geir Magnusson Jr. geirm@optonline.net
System and Software Consulting
Developing for the web? See http://jakarta.apache.org/velocity/
"still climbing up to the shoulders..."