You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by jonathan porterfield <a0...@hotmail.com> on 2001/09/02 18:15:05 UTC
newguy needs short jumpstart...
Some facts
- Using TDK 2.1
- Successfully built and adaquately played with the sample site
- Successfully built my own database and initialized app
- Have added a couple stand-alone Velocity pages to the sample site.
- Now want to add servlet/template pages
My questions
a) So that I can can use the sample app more effectively, where the heck can
I find the source for the classes that drive the screens
(e.g.FluxUserList.vm)? Isn't there a FluxUserList.java somewhere?
b) Using the "Velocity Site How-To" I have created two files, ripped exactly
from the doc.
1. Helloworld.vm
2. Helloworld.class (no errors compiling )
I dropped the .vm file in:
[fullpath]\myapp\templates\app\screens
And the .class file in
[fullpath]\myapp\WEB-INF\classes\com\myco\myapp\modules\screens
I added the link to the navigation on the sample app
<a href="$link.setPage("Helloworld.vm")">Helloworld</a>
and it works, well sort of.
the output from the request is a vapid
"$hello of the emergency broadcast station."
This, as I understand it, is due to the servlet failing to initialize and
dump something into the context called $hello. I tried adding the class to
the classpath, obviously no change.
I turn to the list ...
Thanks in advance to any who can respond.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: newguy needs short jumpstart...
Posted by Andrea Papotti <bi...@ettelematica.it>.
> a) So that I can can use the sample app more effectively, where the heck
can
> I find the source for the classes that drive the screens
> (e.g.FluxUserList.vm)? Isn't there a FluxUserList.java somewhere?
>
afaik Flux is 'Action' based, try to look in
\webapps\<yourapp>\WEB-INF\src\java\org\apache\turbine\flux\modules\actions
bye, Andrea
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: newguy needs short jumpstart...
Posted by ps...@comcen.com.au.
Jonathon,
I know I had my share of fun when configuring Turbine, though
make sure you check the velocity.log and turbine.log
in myapps/log directory. The output is very verbose and useful
in identifying simple mistakes..
Can you post the last 15 lines of the logs?
patrick.
Quoting jonathan porterfield <a0...@hotmail.com>:
> Some facts
[ snip ]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org