Package org.apache.tiles.template
Class ImportAttributeModel
- java.lang.Object
-
- org.apache.tiles.template.ImportAttributeModel
-
public class ImportAttributeModel extends java.lang.Object
Import attribute(s) in specified context.
Import attribute(s) to requested scope. Attribute name and scope are optional. If not specified, all attributes are imported in page scope. Once imported, an attribute can be used as any other beans from jsp contexts.
- Since:
- 2.2.0
- Version:
- $Rev: 1291847 $ $Date: 2012-02-22 02:09:30 +1100 (Wed, 22 Feb 2012) $
-
-
Constructor Summary
Constructors Constructor Description ImportAttributeModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(java.lang.String name, java.lang.String scope, java.lang.String toName, boolean ignore, org.apache.tiles.request.Request request)
Executes the model.
-
-
-
Method Detail
-
execute
public void execute(java.lang.String name, java.lang.String scope, java.lang.String toName, boolean ignore, org.apache.tiles.request.Request request)
Executes the model.- Parameters:
name
- The name of the attribute to import. If it isnull
, all the attributes will be imported.scope
- The scope into which the attribute(s) will be imported. Ifnull
, the import will go in page scope.toName
- The name of the attribute into which the attribute will be imported. To be used in conjunction toname
. Ifnull
, the value ofname
will be used.ignore
- Iftrue
, if the attribute is not present, the problem will be ignored.request
- The request.
-
-