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||.5MB||FTP|HTTP|
|Error handling examples||StrutsExample1.zip||1.9MB||FTP|HTTP|
Rajender Sriramoju works as a portal architect. He has worked with IBM Websphere Portal server since V4.0, and he has an extensive background in architecture, design, development, and implementation of large scale J2EE and portal applications. He works primarily on portal architecture, design, and integration with various enterprise systems. When he is not working, Rajender listens to Bluegrass and country music, and plays guitar.