next up previous contents
Next: What you should have Up: Using Velocity Previous: The Velocity helloworld servlet

Testing your new hello world Velocity servlet

To test this servlet open your browser and open the URL:

http://127.0.0.1:8080/myapp/hello

If everything went ok you should see the template with the variable $variable replaced by "Hello World";

Test as root to see if in the /usr/tomcat/webapps/myapp dir the hello_velocity.log is created. This should have happened if the webpage showed correctly on screen.

Note: there is still a lot of stuff in the /usr/tomcat/webapps/myapp dir that you don't need any longer.. like the hello.jsp file, you can remove this file, don't forget to remove it from the /web dir in your development environment.



Copyright © 2001, R.M. Morriën, H.P.A.M. Snoek, M.A.C. Bakker