Having a good design and implementation for error validation and exception handling enables applications to respond gracefully in abnormal conditions. This article tells how you can leverage error validation and exception handling features, which are built into the WebSphere Portal Struts Portlet Framework, in your portlet applications.
Most portlet applications accept input from users. The input can come in many forms, such as input text fields, dropdown lists, radio buttons, or check boxes. Sometimes users do not provide appropriate input. An application might expect specific date and phone number formats, require certain input fields, and need other specific forms of data. Therefore, the application needs to validate the input.
Websphere Portal V5.0 provides the Struts Portlet Framework, which supports deployment of Struts applications as portlets. You can leverage the error validation and exception handling features which are built into this framework. This article describes options for server side error validation and exception handling in Struts-based portlets.
|Article in PDF format||0411_sriramoju-ErrorValidationSPF.pdf ( HTTP | FTP )||.5MB|
|Error handling examples||StrutsExample1.zip ( HTTP | FTP )||1.9MB|