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:getvalueofanddsp:tomapprovides access to JavaBean components,dsp:getvalueofis more efficient.dsp:tomapwraps 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:getvalueofdirectly references the source JavaBean.dsp:tomaplets you set variables to component properties, while variables set bydsp:getvalueofcan reference only components.

