Public Member Functions | |
AttrIteratorTag (const string &name) | |
virtual void | doStartTag (const attribs_t &attribs) |
virtual void | doEndTag () |
Public Attributes | |
string | m_attribute |
string | m_var |
string | m_type |
string | m_source |
string | m_attrvar |
bool | m_required |
attribute | Attribute name | |
var | Iterator variable name. It can be referenced only inside the block | |
type | Collection type (e.g. std::vector<std::string>) | |
source | Where the attribute comes from (request, session, or servlet; request it the default) | |
required | Whether attribute must be present (boolean, default false) Note: currently no data type checking is performed. If "required" is set to true and attribute is missing, MissingAttributeException is thrown If source is "servlet", the attribute is retrieved from servlet context |
Definition at line 44 of file IteratorTags.cpp.
csp::tags::AttrIteratorTag::AttrIteratorTag | ( | const string & | name | ) | [inline] |
Definition at line 50 of file IteratorTags.cpp.
void csp::tags::AttrIteratorTag::doEndTag | ( | ) | [virtual] |
Called when closing tag is encountered
Implements servlet::taglib::Generator.
Definition at line 104 of file IteratorTags.cpp.
References servlet::taglib::Generator::body.
virtual void csp::tags::AttrIteratorTag::doStartTag | ( | const attribs_t & | attribs | ) | [virtual] |
doStartTag is called when opening tag is encountered
attribs | key-value map of the tag attributes Override this function in your tag handler to generate pre-amble code for your tag |
Implements servlet::taglib::Generator.
Definition at line 47 of file IteratorTags.cpp.
Definition at line 47 of file IteratorTags.cpp.
Definition at line 48 of file IteratorTags.cpp.
Definition at line 47 of file IteratorTags.cpp.
Definition at line 47 of file IteratorTags.cpp.
Definition at line 47 of file IteratorTags.cpp.