HTML service module
Line 14: | Line 14: | ||
This is also the default handler for services unless something else is specified in the service specific options. | This is also the default handler for services unless something else is specified in the service specific options. | ||
+ | |||
+ | == See also == | ||
+ | |||
+ | * [[Embedded HTTP server]] |
Revision as of 19:06, 8 December 2011
This service provides a human friendly HTML access to the current topic map. HTML service name is topic. Service URL is
http://127.0.0.1:8898/topic
This will open the same topic that is currently open in the Wandora application itself. To see other topics, use get parameter topic with the subject identifier of the topic you would like to see. For example
http://127.0.0.1:8898/topic?topic=http%3A%2F%2Fwww.wandora.org%2Fcore%2Fschema-type
Generated HTML pages contains links to all other related topics using this link format allowing very easy browsing of the topic map. Image below shows Schema type topic served by the this service.
This service uses Apache velocity to serve the pages. This means that it can also be used to server pages in other formats than HTML. The template used to build the pages can be changed in the service specific options. This template should be in the templates directory under the service specific directory. You can also place any static content needed for the pages in the static directory. You do not need to add the static in the path, just add the file name after the service name. For example http://localhost:8898/topic/wandora_logo.gif for the Wandora logo at the lower part of the page.
This is also the default handler for services unless something else is specified in the service specific options.