Which two DSP Tags can specify a tag converter?
A.
dsp:valueof
B.
dsp:printvalue
C.
dsp:include
D.
dsp:input
Explanation:
You can specify tag converters in the following DSP tags:
dsp:a
dsp:input (D)
dsp:param
dsp:postfield
dsp:select
dsp:setvalue
dsp:textarea
dsp:valueof (A)
A: dsp:valueof
dsp:valueof renders a value in a bean property or page parameter. You can specify a default value
in between the start and end dsp:valueof tags. If you do not intend to use a default, make sure
there is no text, space, or carriage return separating the tags.
Example:
<dsp:valueof bean=”Student_01.age” converter=”number” format=”##”/>
<dsp:valueof param=”currentName”>Happy User</dsp:valueof>
In this example, the age property in the Student_01 component is retrieved and converted into a
format that renders a number as this: 35. The second tag gets the value of the currentName page
parameter, but if no value exists, it displays Happy User instead.
D:To enable more control over data conversions, the ATG platform provides tag converter classes.
Tag converters let you specify how data in forms is interpreted and displayed, and to control when
exceptions are thrown. You specify tag converters through special attributes that ATG provides.
For example, your form might have the following field:
<dsp:input type=”text” bean=”MyBean.age”/>