Runtime tools : Presentation components : JSPs : Reference : Custom JSP tags : ValidationErrorsTag
  
ValidationErrorsTag
A ValidationErrorsTag accesses the context's validation error messages and writes them on the HTML page. Depending on the value of the mode attribute, this tag may only access the cross-validation errors or it may access all of them.
Mandatory attributes
renderMode (list | combo)
ValidationErrorsTag attributes
renderMode
Whether the error messages are shown as an HTML list (list) or combo box (combo)
fontColor
Color of the text
Default value: null
fontSize
Size of the text
Default value: null
fontFace
Typeface of the text
Default value: null
style
Style for the field description
Default value: null
mode
Whether the tag displays only cross-validation errors or all errors
Default value: X (cross-validation)
bundleFile
Resource bundle to use for localized messages. This resource prevails over the resource specified by an AddBundleTag.
Default value: null
Example
The following is an example of using FieldDescriptionTag, FieldErrorTag, and ValidationErrorsTag:
<H3>Using the FieldLabel, FieldError and ValidationErrors Tag</H3>
<dse:form name="f1" nextEventName="ok" errorPage="otherPage.jsp">
<table>
<tr><td colspan="3" align="center"><dse:valErrors fontColor="blue"
fontSize="+1"/></td></tr>
<tr>
<td align="right"><dse:desc dataName="fromAccount"/></td>
<td align="center"><dse:text dataName="fromAccount" error="yes"/></td>
<td align="left"><dse:error dataName="fromAccount" fontColor="red"/></td>
</tr>
<tr>
<td align="right"><dse:desc dataName="toAccount"/></td>
<td align="center"><dse:text dataName="toAccount" error="yes"/></td>
<td align="left"><dse:error dataName="toAccount" fontColor="red"/></td>
</tr>
<tr>
<td align="right"><dse:desc dataName="amount"/></td>
<td align="center"><dse:text dataName="amount" error="yes"/></td>
<td align="left"><dse:error dataName="amount" fontColor="red"/></td>
</tr>
<tr><td colspan="3" align="center"><dse:button type="submit" value=" ok "/>
</td></tr>
</table>
</dse:form>
Go up to
Custom JSP tags