DSP tags dsp:getvalueof
and dsp:tomap
overlap in functionality. The following considerations can help guide your choice of one over the other:
While both
dsp:getvalueof
anddsp:tomap
provides access to JavaBean components,dsp:getvalueof
is more efficient.dsp:tomap
wraps all components including JavaBeans in a Map, where component properties are keys and the corresponding standard bean properties are values. Conversely, a variable created bydsp:getvalueof
directly references the source JavaBean.dsp:tomap
lets you set variables to component properties, while variables set bydsp:getvalueof
can reference only components.