Error validation and exception handling in portlets, using the Struts Portlet Framework

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.

Rajender Sriramoju (rajender@sbcglobal.net), Portal Architect, Freelance Developer

Author photoRajender 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.



11 July 2005 (First published 24 November 2004)

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.

Downloads

DescriptionNameSize
Article in PDF format0411_sriramoju-ErrorValidationSPF.pdf  ( HTTP | FTP ).5MB
Error handling examplesStrutsExample1.zip  ( HTTP | FTP )1.9MB
static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=WebSphere
ArticleID=31936
SummaryTitle=Error validation and exception handling in portlets, using the Struts Portlet Framework
publish-date=07112005