source:
extensions/net.sf.basedb.examples/trunk/README
@
683
Last change on this file since 683 was 683, checked in by , 15 years ago | |
---|---|
|
|
File size: 1.9 KB |
Requirements
- BASE 2.7.0 or later.
Introduction
This package contains a few simple variants of Hello world applications in the form of extensions to the BASE web client. The package installs several examples into the Extensions -> Hello world examples menu:
- Hello world! - A basic example using only javascript
- Hello factory world! - An example that uses a custom action factory
- Greetings Root! - An example of a custom action factory with parameters
- Hello JSP world! - Uses a JSP file to display the message instead of javascript
- Hello X-JSP world! - Another variant of a JSP file
- Hello Servlet world! - Uses a servlet to generate the message
Installation
- Unpack the tar.gz file to a directory of your choice.
- Copy the extension-examples.jar to your BASE extensions directory: WEB-INF/extensions.
- Run the 'Extensions -> Manual scan' command if you have disabled automatic installation. Otherwise, just wait a bit and the automatic installation will find and install the new extensions.
- If you are logged in, you may have to logout and then login again to see the new menu items.
- The 'Hello X-JSP world' example requires that the X-JSP compiler is installed on the server. Read in the documentation how to do this. http://base.thep.lu.se/chrome/site/latest/html/admindoc/extensions/admin.extensions.html
- Done. The examples can be found in the Extensions -> Hello world examples menu.
Compiling
To compile this package you also need:
- Ant 1.6
- Java 1.6
Follow these instructions:
- Copy the BASE2Core.jar and BASE2Webclient.jar from the BASE installation directory (<basedir>/www/WEB-INF/lib/) to the ./lib/compile directory.
- Type 'ant' to compile the code and generate the 'extension-example.jar' file in the project directory.
- Use 'ant package' to create a downloadable tar.gz package.
Note: See TracBrowser
for help on using the repository browser.