Flex examples 2
These examples and tests where developed for testing the OpenCms JSP integration with the WYSIWYG editor and other items.
The classic basic example, using JSP in OpenCms.
Test for JSP error page calling
This test will generate an exception and call a custom JSP error page. The error page can be directly accessed here.
Simple redirect test to 'hello.jsp'
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).
Test for the readProperties() method
This test reads all properties of a file with the readProperties() method, also searching all parent folders.
Test for the getContent() method
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.
Test for the template() method
A test for the use of the template() method selecing different elements in a complex inclusion scenario.
Simple XMLTemplate / JSP integration demo
This simple demo shows how to use JSP elements in an XMLTemplate.
Scriplet: Navigation include file from this application
The templates in the example application are build simply by using this common include file which builds the navigation and foot.
Scriplet: Example of how to build a dynamic directory listing
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).