|
|
|
Introduction
The 'Hello World' plugins is template generated server-side web application that displays the"Hello World" web page.
Source Code and Resource Files
The HelloWorld compiles as part of the build process. The important modules that contribute to the demo are listed here. All these files placed together on in one war file as a server application. The resourses and src directories contain all these files.
The resource directory contains:
This text file used to display the text HELLO WORLD .
Resource File .
It facilitates the processing of command line arguments in very flexible manner. The data is held by properties the name-value pairs.
Resource File .
This xml files describes the name of the application, its path directory and action. It also gives the link to help page. The privilege tag represents the specific permission to which the user has access. "Hello" privilege being presented by the privilege tag.
Resource File .
This xml file is servlet descriptor. It expresses the servlet name, servlet path and the time(millisecond) taken to load servlet after server starts.
Resource File .
The src directory contains:
This class provides the functionality for complete processing of template.
Source Code .
The QServlet source file resides in the 'src' directory of the HelloWorld. It extends QHome the top of all Java Servlet. It also identifies the data to use by after. It gives the the war file name "helloWorld" to get data of the specific application while parsing data and the parsed data is held in object that sets the application.
Source Code .