Scripting Helma |
Sonntag, 11. August 2002
Hello World
matthias
13:28h
After we succesfully installed Helma, we will write our first application: The traditional "Hello World" example. In your Helma directory you will find a folder named "apps". There you will find the existing apps, that had been distributed with Helma, and you can access through the "Base"-application. ( http://localhost:8080 ). To create a new application you have to open the apps.properties file in the Helma directory with a texteditor: As you can see the apps.properties hold a list of applcation names, that are running at your server. So we add a line at the end of the file with the name of our "helloworld" application. When you go back to the helma/apps folder you will find a newly created helma/apps/helloworld folder. In there you will find 4 subfolders: helma/apps/helloworld/global helma/apps/helloworld/hopobject helma/apps/helloworld/root helma/apps/helloworld/user For our "Hello World" application we will just need the root folder. As the name says this is the "root"-directory of our application, which we can access via the URL http://localhost:8080/applicationname (in our case http://localhost:8080/helloworld). Create a textfile called "main.hac" in the root folder, and open it with a text editor. Type the following line: ".hac" files are our "Helma Action" files, which we can access via the URL. "main.hac" is something like index.html on a static web server. That means this file will be automatically called when we access a Helma node (in this case the root-node). So helma/apps/helloworld/root/main.hac can be called via the URL's http://localhost:8080/applicationname/main or just http://localhost:8080/applicationname . What you can see in your browser should be the line: Hello World! ... Link |
Online for 8559 days
Last modified: 08.08.02, 10:22 Status
Youre not logged in ... Login
Menu
Suche
Calendar
Recent updates
Controlling the form behaviour Last
time our application was able to create forums, but in...
by matthias (15.11.02, 20:04)
Scripting a simple Forum In
this chapter we will script our first real Helma web...
by matthias (15.11.02, 18:37)
Adding Forums to our application
Today you will learn, how to create new forums, and...
by matthias (15.08.02, 12:27)
Hello World After we succesfully
installed Helma, we will write our first application: The traditional...
by matthias (11.08.02, 13:32)
Installing Helma Helma is 100%
Java, that means, that you can run it on a...
by matthias (08.08.02, 20:32)
How to script Helma ....
That's what you would love to know. .... RIGHT! Antville...
by matthias (06.08.02, 12:00)
How can you get involved?
Helma.org is providing a lot of gates which you can...
by matthias (06.08.02, 11:48)
first try funny, an hour
ago i first saw this tool, because i was testing...
by matthias (28.06.01, 17:20)
|