Create a "Hello world" application

From WebRatio WebML Wiki

Jump to: navigation, search


Create a "Hello world" web application

This article shows you how to create a simple HelloWorld web application. So we will demonstrate how it's quick to deploy a web application using WebRatio.

If you're not already in the WebRatio perspective, select Window > Open Perspective > WebRatio from the main menu

1. Let's create a new Web Project. In the main menu, click on the File > New > Web Project item. Enter "HelloWorld" (avoiding spaces) as project name, then click Finish.

2. Create a new site view. In the main area, called work area, right-click and choose the Add Site View command. Enter Hello World as site view name, then click Finish.

3. Select the Page icon from the left side palette and then click in the site view work area where you want to place the page.

4. Edit the Page properties in the Properties View. Enter "Hello World!" as page name and check the Home property to mark the new page as the home page of your site view.


5. Now let's add a content to the page. We will add a Multi Message Unit to print out a message. Select the Multi Message Unit from the palette and then click in the page.

Image:MMUnit.png Image:helloUnit.png


6. Edit the unit properties in the Properties View. Enter "Hello World!" as unit name. Click on the Edit button beside the Default message property to set the default message that will be shown. In the opened dialog, write "Hello World!" as value and then click OK

Image:editMessage.png


7. Click the Generate Full Project button, in the main toolbar.Image:gene.png and start Tomcat; open your browser and type the following url: http://localhost:8080/HelloWorld.



Related articles:
Category Difficulty Refers
Context Parameters Web Model Beginner Get Unit
Set Unit
Reset Unit
Create Unit Web Model Beginner Create Unit
Create a "Hello world" application Web Model Beginner Site View
WebML
WebRatio
Create a "Simple data centric" web application Web Model Beginner Site View
WebML
WebRatio
Custom Locations and Master pages Web Model Beginner Master Page
Custom Location
… further results












Did you find this article useful? Please rate it!

Rating: 5.0/5 (1 vote cast)

Personal tools