You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by js...@es.wanadoo.com on 2001/03/20 18:10:15 UTC

A little contribution to Turbine-Velocity beginners

Hello, this is information about some (possibles) mistakes i've found
in 'VelocitySite' page 
(http://jakarta.apache.org/turbine/velocity-site.html).
 Here we go:

* In the 'Screens' section, the 'import' entry should be:
        import org.apache.velocity.context.Context;

        (instead of 'import.apache.velocity.Context;')

* It occurs again in the first sample on 'Actions' section.

* In this section too, the conditional sentence should be:

        if(data.getParameters().getString("username",null)==null)

        (instead of 
'if(data.getParameter.getString("username",null)==null))

* And (ok, it's obvious, but...) if you are using the 'Catalina' servlet 
engine included
 with Turbine with the default configuration, the URLs must be:

       http://www.myserver.com:8080/servlet/Turbine/template...
           instead of 
       http://www.myserver.com/servlet/Turbine/...

* One doubt: In the Actions section there is an example URL that looks 
like:

 
"http://www.server.com/servlet/Turbine/template/HelloWorld/action/Update/UpdateWorld"

is it ok?   and why not 
"http://www.server.com/servlet/Turbine/template/HelloWorld.vm/action/Update/UpdateWorld" 
 ? 
(note de 'vm' extension in 'HelloWorld')

Regards: Jaume

Re: A little contribution to Turbine-Velocity beginners

Posted by Jon Stevens <jo...@latchkey.com>.
on 3/20/01 9:10 AM, "jsoriano@es.wanadoo.com" <js...@es.wanadoo.com>
wrote:

> Hello, this is information about some (possibles) mistakes i've found
> in 'VelocitySite' page (http://jakarta.apache.org/turbine/velocity-site.html).

The source code to that page is checked into CVS...look in the
jakarta-turbine/xdocs/velocity-site.xml file. If you send me a diff of that
file, I will update the page. :-)

-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>


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