CPPSERV


Home Projects Jobs Clientele Contact
CPPSERV Documentation Download TODO Mailing lists Bug tracker News RSS Feed Browse source

csp::tags::AttrIteratorTag Class Reference

Inheritance diagram for csp::tags::AttrIteratorTag:
Collaboration diagram for csp::tags::AttrIteratorTag:

List of all members.


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

Detailed Description

Tag synopsys <csp:foreach_attr attribute="<attribute name>="">" var="<iterator>" type="<collection type>="">" [source="{request|session|servlet}"] [required="{true|false}">...</csp:foreach_attr>
Parameters:
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.


Constructor & Destructor Documentation

csp::tags::AttrIteratorTag::AttrIteratorTag ( const string &  name  )  [inline]

Definition at line 50 of file IteratorTags.cpp.


Member Function Documentation

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

Parameters:
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.


Member Data Documentation

Definition at line 47 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.

Definition at line 47 of file IteratorTags.cpp.


The documentation for this class was generated from the following file:

SourceForge.net Logo