- All Implemented Interfaces:
- Action, XMLParamAware
public class ViewPage
extends java.lang.Object
implements Action, XMLParamAware
This action can be used to show a page generated from a velocity template with the context returned
by Application.getDefaultContext. Thus you can use this Action when you need a simple action that does not
need any special handling in java but can be entirely performed in velocity template. Unless otherwise
specified, will cache the pages with a cache key consisting of the template key, template version and
user language. This class is XMLParamAware and needs at least templatekey element as a parameter. The
template key used to generate the page is taken from this element. If usecache element is specified and
it contains the string "false", caching of pages is turned off. Note that by using contextobject elements
in piccolo initialization xml, you can add objects to the context returned by Application.getDefaultContext.
- Author:
- olli