getErrorXML

Description

This mobile device JSP function returns an XML representation of error. The mobile device interprets this XML and renders an error page.

Syntax

public String getErrorXML(String error, String errorField)

public String getErrorXML(String error, String errorField, String severity)

Input Parameters

error - Required. Error description for the error to be shown to the user. This is usually derived by invoking the checkForError() function.

errorField - Required. Form field where the focus must be transferred to on clearing the error page.

severity - Optional. Displays the degree of error present. Recommended values in ascending order are: info, error, warning.

Example

The following example shows how this function can be used to get the error XML for rendering an error message on a mobile UI screen:
errorXML=getErrorXML(errorDesc, errorfield)