<< Back - Alkacon logo

OpenCms 6.0 interactive documentation:

Flex examples set 2 - Overview page

OpenCms logo - Forward >>

Flex examples 2

These examples and tests where developedĀ for testing the OpenCms JSP integration with the WYSIWYG editor and other items.

file Hello World example     Show Source     Execute

The classic basic example, using JSP in OpenCms.

file Test for JSP error page calling     Show Source     Execute

This test will generate an exception and call a custom JSP error page. The error page can be directly accessed here.

file Simple redirect test to 'hello.jsp'     Show Source     Execute

This test shows the use of sendRedirect() on a page together with the FlexCache. It will redirect the request to the 'Hello, World!' example page. This redirect is also cached in the FlexCache (if it is enabled).

file Test for the readProperties() method     Show Source     Execute

This test reads all properties of a file with the readProperties() method, also searching all parent folders.

file Test for the getContent() method     Show Source     Execute

This test uses the getContent() method to read the contents of a processed JSP page and a plain text file which are then used as a String.

file Test for the template() method     Show Source     Execute

A test for the use of the template() method selecing different elements in a complex inclusion scenario.

file Simple XMLTemplate / JSP integration demo     Show Source     Execute

This simple demo shows how to use JSP elements in an XMLTemplate.

file Scriplet: Navigation include file from this application     Show Source

The templates in the example application are build simply by using this common include file which builds the navigation and foot.

file Scriplet: Example of how to build a dynamic directory listing     Show Source

This example shows how to use the OpenCms file properties to build a dynamic directory overview page (actually, this page you are looking at right now).

©2003-2005 Alkacon Software (http://www.alkacon.com) - The OpenCms experts